public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47451] New: [c++0x] outer inlined namespace vs. inner nested namespace
@ 2011-01-25 3:10 bkoz at gcc dot gnu.org
2011-05-25 15:38 ` [Bug c++/47451] " jason at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: bkoz at gcc dot gnu.org @ 2011-01-25 3:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47451
Summary: [c++0x] outer inlined namespace vs. inner nested
namespace
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bkoz@gcc.gnu.org
Created attachment 23114
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23114
test for nested inline namespace
Interesting g++ behavior I ran into while revamping "versioning with inline
namespaces", which I believe to be a bug.
Compiling the attached as so:
$bin/H-x86_64-gcc-trunk.20110124/bin/g++ -c -g -O2 -std=gnu++0x
inline_ns_trouble.cc
ok, great.
adding an inlined namespace however gives error:
%$bin/H-x86_64-gcc-trunk.20110124/bin/g++ -DBUG -c -g -O2 -std=gnu++0x
inline_ns_trouble.cc
inline_ns_trouble.cc:68:14: error: ‘treat_as_floating_point’ is not a template
inline_ns_trouble.cc:70:7: error: explicit specialization of non-template
‘std::chrono::treat_as_floating_point’
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/47451] [c++0x] outer inlined namespace vs. inner nested namespace
2011-01-25 3:10 [Bug c++/47451] New: [c++0x] outer inlined namespace vs. inner nested namespace bkoz at gcc dot gnu.org
@ 2011-05-25 15:38 ` jason at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-25 15:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47451
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 15:35:09 UTC ---
A nested namespace of an inline namespace does not map onto a nested namespace
of the enclosing namespace; you need to have one chrono namespace and two
inline namespaces, rather than one inline namespace and two chrono namespaces.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-25 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 3:10 [Bug c++/47451] New: [c++0x] outer inlined namespace vs. inner nested namespace bkoz at gcc dot gnu.org
2011-05-25 15:38 ` [Bug c++/47451] " jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).