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++/13244] New: Demangler should parenthesize > operator?


Consider:
template <int T> class foo { public: foo() { } class Z { };};
template <int I> void dep9(foo<(I) > (2)> *) { }


00000000 W void dep8<3>(foo<(3) > (2)>*)


I'm told there's a DR about this.  But definitely GCC doesn't accept something
like <3 > 2>, you have to say <(3 > 2)>.  Probably the demangler should do
something similar?

-- 
           Summary: Demangler should parenthesize > operator?
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: ian at airs dot com
        ReportedBy: drow at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13244


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