Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Issue 1073903002: Fix C++ violation. (Closed)

Created:
5 years, 8 months ago by Nico
Modified:
5 years, 8 months ago
CC:
v8-dev, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix C++ violation. gcc rejects the following snippet, clang rejects it in -std=c++11 mode: namespace A { template<class T> class C {}; } namespace B { template class A::C<int>; } Indeed, the C++ standard says in 14.7.2p2 "An explicit instantiation shall appear in an enclosing namespace of its template", so cl.exe is incorrect to allow this. Just move the instantiation out of the v8 namespace to fix. No intended behavior change. Fixes building with clang-cl on Windows. BUG=chromium:475643 LOG=N TBR=svenpanne@chromium.org Committed: https://crrev.com/1f7a7b32d721cd48447017340961bf5ec80d199a Cr-Commit-Position: refs/heads/master@{#27721}

Patch Set 1 #

Total comments: 2

Patch Set 2 : lolmsvc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M include/v8-profiler.h View 1 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Nico
5 years, 8 months ago (2015-04-09 19:53:13 UTC) #2
Nico
sorry, i meant to put sven into the reviewers box, not the cc box
5 years, 8 months ago (2015-04-09 19:55:09 UTC) #4
loislo
https://codereview.chromium.org/1073903002/diff/1/include/v8-profiler.h File include/v8-profiler.h (left): https://codereview.chromium.org/1073903002/diff/1/include/v8-profiler.h#oldcode36 include/v8-profiler.h:36: std::vector<CpuProfileDeoptFrame> stack; template class needs to be defined before ...
5 years, 8 months ago (2015-04-09 20:23:21 UTC) #5
Nico
…and there it is. ptal. https://codereview.chromium.org/1073903002/diff/1/include/v8-profiler.h File include/v8-profiler.h (left): https://codereview.chromium.org/1073903002/diff/1/include/v8-profiler.h#oldcode36 include/v8-profiler.h:36: std::vector<CpuProfileDeoptFrame> stack; On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 20:50:11 UTC) #6
Michael Achenbach
I'll add a TBR to Sven and push this through to cherry-pick it on the ...
5 years, 8 months ago (2015-04-09 21:11:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073903002/20001
5 years, 8 months ago (2015-04-09 21:19:07 UTC) #9
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 8 months ago (2015-04-09 21:19:09 UTC) #11
Michael Achenbach
lgtm
5 years, 8 months ago (2015-04-09 21:20:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073903002/20001
5 years, 8 months ago (2015-04-09 21:21:08 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-09 21:22:51 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 21:23:07 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1f7a7b32d721cd48447017340961bf5ec80d199a
Cr-Commit-Position: refs/heads/master@{#27721}

Powered by Google App Engine
This is Rietveld 408576698