public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32385]  New: [4.3 regression] ICE with struct in default argument of template function
@ 2007-06-17 23:24 reichelt at gcc dot gnu dot org
  2007-06-17 23:25 ` [Bug c++/32385] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-06-17 23:24 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet triggers a segfault since GCC 4.0.0:

=================================================================
struct A
{
  template<int> void foo(int = ((struct { int i; }) {0}).i);
};
=================================================================

bug.cc:3: error: template class without a name
bug.cc:3: error: 'struct A::<anonymous>' does not declare a template type
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with struct in default argument of
                    template function
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-22 18:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-17 23:24 [Bug c++/32385] New: [4.3 regression] ICE with struct in default argument of template function reichelt at gcc dot gnu dot org
2007-06-17 23:25 ` [Bug c++/32385] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
2007-06-29 18:48 ` mmitchel at gcc dot gnu dot org
2007-09-25 17:40 ` pcarlini at suse dot de
2008-07-04 22:14 ` [Bug c++/32385] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-09-30 21:45 ` reichelt at gcc dot gnu dot org
2009-03-31 20:11 ` [Bug c++/32385] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:36 ` rguenth at gcc dot gnu dot org
2010-05-22 18:32 ` [Bug c++/32385] [4.3/4.4/4.5/4.6 " rguenth 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).