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++/29811] New: [reject valid] error: trying to instantiate template...


$ g++ bug.cpp -Wall -c
bug.cpp: In function ‘void foo()’:
bug.cpp:18: error: ‘foo()::A::less’ uses local type
‘foo()::A::less’
bug.cpp:18: error:   trying to instantiate &#8216;template<class _Key, class
_Compare, class _Alloc> class std::set&#8217;
bug.cpp:18: error: invalid type in declaration before &#8216;;&#8217; token


comeau compiler accepts this code.


-- 
           Summary: [reject valid] error: trying to instantiate template...
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: x86_64-linux


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


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