public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34541]  New: ICE in template specialization using a typedef to an anonymous enum
@ 2007-12-20 22:46 rbuergel at web dot de
  2007-12-20 22:47 ` [Bug c++/34541] " rbuergel at web dot de
  2007-12-26 14:06 ` reichelt at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: rbuergel at web dot de @ 2007-12-20 22:46 UTC (permalink / raw)
  To: gcc-bugs

template<class _T2> struct X {
        template<class _U2> X(_U2 __y){}
};

template <class T> class Y{};

template<> class Y<void> {
        typedef enum {} Z;

        Y():z(), x(z) {}

        Z z;
        X<Z> x;
};

g++-4.3.0 -c test.cpp
test.cpp: In constructor 'Y<void>::Y()':
test.cpp:10: internal compiler error: Segmentation fault

if "typedef enum {} Z;" is replaced by "enum Z {}", it compiles fine.

gcc-4.2.2 and 4.1.2 compile without problems


-- 
           Summary: ICE in template specialization using a typedef to an
                    anonymous enum
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbuergel at web dot de


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


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

* [Bug c++/34541] ICE in template specialization using a typedef to an anonymous enum
  2007-12-20 22:46 [Bug c++/34541] New: ICE in template specialization using a typedef to an anonymous enum rbuergel at web dot de
@ 2007-12-20 22:47 ` rbuergel at web dot de
  2007-12-26 14:06 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rbuergel at web dot de @ 2007-12-20 22:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rbuergel at web dot de  2007-12-20 22:47 -------
gcc version 4.3.0 20071213 (experimental) (GCC)


-- 


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


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

* [Bug c++/34541] ICE in template specialization using a typedef to an anonymous enum
  2007-12-20 22:46 [Bug c++/34541] New: ICE in template specialization using a typedef to an anonymous enum rbuergel at web dot de
  2007-12-20 22:47 ` [Bug c++/34541] " rbuergel at web dot de
@ 2007-12-26 14:06 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-26 14:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2007-12-26 14:06 -------
This seems to be a duplicate of PR34206.
It has been fixed on mainline between 2007-12-11 and 2007-12-21.


*** This bug has been marked as a duplicate of 34206 ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2007-12-26 14:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-20 22:46 [Bug c++/34541] New: ICE in template specialization using a typedef to an anonymous enum rbuergel at web dot de
2007-12-20 22:47 ` [Bug c++/34541] " rbuergel at web dot de
2007-12-26 14:06 ` reichelt 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).