This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47451] New: [c++0x] outer inlined namespace vs. inner nested namespace
- From: "bkoz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jan 2011 00:28:56 +0000
- Subject: [Bug c++/47451] New: [c++0x] outer inlined namespace vs. inner nested namespace
- Auto-submitted: auto-generated
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â