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

* [Bug c++/32385] [4.1/4.2/4.3 regression] ICE with struct in default argument of template function
  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 ` reichelt at gcc dot gnu dot org
  2007-06-29 18:48 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-06-17 23:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3 regression] ICE with   |[4.1/4.2/4.3 regression] ICE
                   |struct in default argument  |with struct in default
                   |of template function        |argument of template
                   |                            |function
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/32385] [4.1/4.2/4.3 regression] ICE with struct in default argument of template function
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/32385] [4.1/4.2/4.3 regression] ICE with struct in default argument of template function
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2007-09-25 17:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pcarlini at suse dot de  2007-09-25 17:39 -------
Note: given the C99 extensions, this is actually reject-valid: for instance
Comeau in relaxed mode accepts it.


-- 


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


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

* [Bug c++/32385] [4.2/4.3/4.4 regression] ICE with struct in default argument of template function
  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
                   ` (2 preceding siblings ...)
  2007-09-25 17:40 ` pcarlini at suse dot de
@ 2008-07-04 22:14 ` jsm28 at gcc dot gnu dot org
  2008-09-30 21:45 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jsm28 at gcc dot gnu dot org  2008-07-04 22:14 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
                   |ICE with struct in default  |with struct in default
                   |argument of template        |argument of template
                   |function                    |function
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/32385] [4.2/4.3/4.4 regression] ICE with struct in default argument of template function
  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
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-30 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2008-09-30 21:44 -------
With the patch for PR37649 the testcase doesn't ICE on mainline anymore.
According to Paolo's comment, this is still rejects-valid, though.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|error-recovery, ice-on-     |ice-on-valid-code, rejects-
                   |invalid-code                |valid


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


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

* [Bug c++/32385] [4.3/4.4/4.5 regression] ICE with struct in default argument of template function
  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
                   ` (4 preceding siblings ...)
  2008-09-30 21:45 ` reichelt at gcc dot gnu dot org
@ 2009-03-31 20:11 ` 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
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2009-03-31 20:11 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-03-31 20:11:12
               date|                            |
            Summary|[4.2/4.3/4.4/4.5 regression]|[4.3/4.4/4.5 regression] ICE
                   |ICE with struct in default  |with struct in default
                   |argument of template        |argument of template
                   |function                    |function
   Target Milestone|4.2.5                       |4.3.4


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


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

* [Bug c++/32385] [4.3/4.4/4.5 regression] ICE with struct in default argument of template function
  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
                   ` (5 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-08-04 12:28 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug c++/32385] [4.3/4.4/4.5/4.6 regression] ICE with struct in default argument of template function
  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
                   ` (6 preceding siblings ...)
  2009-08-04 12:36 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:32 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2010-05-22 18:11 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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).