public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21514] New: operator<< and anonymous enum
@ 2005-05-11 14:12 papadopo at shfj dot cea dot fr
  2005-05-11 14:15 ` [Bug c++/21514] " pinskia at gcc dot gnu dot org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: papadopo at shfj dot cea dot fr @ 2005-05-11 14:12 UTC (permalink / raw)
  To: gcc-bugs

Hi,

The attached code emits a mysterious error:

$ g++ -c foo.cc
foo.cc: In function 'int main()':
foo.cc:13: error: '<anonymous enum>' is/uses anonymous type
foo.cc:13: error:   trying to instantiate 'template<class T> void
operator<<(MyClass&, const T&)'
$ 

The compiler apparently fails to see that the anonymous enum can be cast to an
integer.

-- 
           Summary: operator<< and anonymous enum
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: papadopo at shfj dot cea dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


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


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

end of thread, other threads:[~2005-09-16 16:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-11 14:12 [Bug c++/21514] New: operator<< and anonymous enum papadopo at shfj dot cea dot fr
2005-05-11 14:15 ` [Bug c++/21514] " pinskia at gcc dot gnu dot org
2005-05-11 14:16 ` pinskia at gcc dot gnu dot org
2005-05-11 14:21 ` [Bug c++/21514] templates " papadopo at shfj dot cea dot fr
2005-05-11 14:25 ` pinskia at gcc dot gnu dot org
2005-05-11 14:38 ` papadopo at shfj dot cea dot fr
2005-05-18  9:33 ` papadopo at shfj dot cea dot fr
2005-05-18 12:49 ` [Bug c++/21514] [DR 278] " pinskia at gcc dot gnu dot org
2005-05-18 14:04 ` gdr at integrable-solutions dot net
2005-05-18 14:56 ` papadopo at shfj dot cea dot fr
2005-05-18 15:00 ` pcarlini at suse dot de
2005-05-18 15:07 ` gdr at integrable-solutions dot net
2005-05-18 15:13 ` papadopo at shfj dot cea dot fr
2005-05-18 17:08 ` gdr at integrable-solutions dot net
2005-05-21 18:01 ` pinskia at gcc dot gnu dot org
2005-05-31 16:57 ` ebotcazou at gcc dot gnu dot org
2005-07-15 19:48 ` pinskia at gcc dot gnu dot org
2005-09-15 21:31 ` mmitchel at gcc dot gnu dot org
2005-09-16 15:42 ` [Bug c++/21514] [DR 488] " cvs-commit at gcc dot gnu dot org
2005-09-16 15:44 ` cvs-commit at gcc dot gnu dot org
2005-09-16 15:48 ` mmitchel at gcc dot gnu dot org
2005-09-16 16:02 ` 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).