This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47451] New: [c++0x] outer inlined namespace vs. inner nested namespace


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â


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]