public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35077]  New: [4.3 regression] ICE with attribute in broken class declaration
@ 2008-02-04 13:45 reichelt at gcc dot gnu dot org
  2008-02-04 14:30 ` [Bug c++/35077] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-04 13:45 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

===========================================================
template<typename=int struct A __attribute((aligned(4)));
===========================================================

bug.cc:1: error: two or more data types in declaration of 'type name'
bug.cc:1: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in groktypename, at cp/decl.c:3916
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with attribute in broken class
                    declaration
           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=35077


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

* [Bug c++/35077] [4.3 regression] ICE with attribute in broken class declaration
  2008-02-04 13:45 [Bug c++/35077] New: [4.3 regression] ICE with attribute in broken class declaration reichelt at gcc dot gnu dot org
@ 2008-02-04 14:30 ` rguenth at gcc dot gnu dot org
  2008-02-04 15:00 ` pcarlini at suse dot de
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-04 14:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-02-04 14:29 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to work|                            |4.2.3
           Priority|P3                          |P5
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-04 14:29:55
               date|                            |
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/35077] [4.3 regression] ICE with attribute in broken class declaration
  2008-02-04 13:45 [Bug c++/35077] New: [4.3 regression] ICE with attribute in broken class declaration reichelt at gcc dot gnu dot org
  2008-02-04 14:30 ` [Bug c++/35077] " rguenth at gcc dot gnu dot org
@ 2008-02-04 15:00 ` pcarlini at suse dot de
  2008-02-11  9:30 ` paolo at gcc dot gnu dot org
  2008-02-11  9:31 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2008-02-04 15:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2008-02-04 14:59 -------
Seems simple.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/35077] [4.3 regression] ICE with attribute in broken class declaration
  2008-02-04 13:45 [Bug c++/35077] New: [4.3 regression] ICE with attribute in broken class declaration reichelt at gcc dot gnu dot org
  2008-02-04 14:30 ` [Bug c++/35077] " rguenth at gcc dot gnu dot org
  2008-02-04 15:00 ` pcarlini at suse dot de
@ 2008-02-11  9:30 ` paolo at gcc dot gnu dot org
  2008-02-11  9:31 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-02-11  9:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2008-02-11 09:29 -------
Subject: Bug 35077

Author: paolo
Date: Mon Feb 11 09:28:48 2008
New Revision: 132237

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132237
Log:
cp/
2008-02-11  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35077
        * decl.c (groktypename): Check grokdeclarator return.

testsuite/
2008-02-11  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35077
        * g++.dg/template/crash78.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash78.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/35077] [4.3 regression] ICE with attribute in broken class declaration
  2008-02-04 13:45 [Bug c++/35077] New: [4.3 regression] ICE with attribute in broken class declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-02-11  9:30 ` paolo at gcc dot gnu dot org
@ 2008-02-11  9:31 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2008-02-11  9:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pcarlini at suse dot de  2008-02-11 09:31 -------
Fixed.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-02-11  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 13:45 [Bug c++/35077] New: [4.3 regression] ICE with attribute in broken class declaration reichelt at gcc dot gnu dot org
2008-02-04 14:30 ` [Bug c++/35077] " rguenth at gcc dot gnu dot org
2008-02-04 15:00 ` pcarlini at suse dot de
2008-02-11  9:30 ` paolo at gcc dot gnu dot org
2008-02-11  9:31 ` pcarlini at suse dot de

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