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: unassig...@gcc.gnu.org ReportedBy: b...@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’