public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29811] [reject valid] error: trying to instantiate template...
  2006-11-12 21:49 [Bug c++/29811] New: [reject valid] error: trying to instantiate template pluto at agmk dot net
@ 2006-11-12 21:49 ` pluto at agmk dot net
  2006-11-12 21:53 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2006-11-12 21:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2006-11-12 21:49 -------
Created an attachment (id=12599)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12599&action=view)
testcase


-- 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/29811]  New: [reject valid] error: trying to instantiate template...
@ 2006-11-12 21:49 pluto at agmk dot net
  2006-11-12 21:49 ` [Bug c++/29811] " pluto at agmk dot net
  2006-11-12 21:53 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2006-11-12 21:49 UTC (permalink / raw)
  To: gcc-bugs

$ 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/29811] [reject valid] error: trying to instantiate template...
  2006-11-12 21:49 [Bug c++/29811] New: [reject valid] error: trying to instantiate template pluto at agmk dot net
  2006-11-12 21:49 ` [Bug c++/29811] " pluto at agmk dot net
@ 2006-11-12 21:53 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-12 21:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-11-12 21:53 -------
A::less is a local type which makes this invalid code and the error message is
correct.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-12 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-12 21:49 [Bug c++/29811] New: [reject valid] error: trying to instantiate template pluto at agmk dot net
2006-11-12 21:49 ` [Bug c++/29811] " pluto at agmk dot net
2006-11-12 21:53 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).