public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration
@ 2005-02-15  9:30 reichelt at gcc dot gnu dot org
  2005-02-15 11:42 ` [Bug c++/19964] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-15  9:30 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since gcc 3.4.0:

==================
struct A
{
    A : A;
};
==================

bug.cc:3: error: expected primary-expression before ';' token
bug.cc:3: error: name 'A' has incomplete type
bug.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

With the similar code snippet

==================
struct A
{
    A : B;
};
==================

I get an ICE since at least gcc 2.95.3.

bug.cc:3: error: 'B' was not declared in this scope
bug.cc:3: error: name 'A' has incomplete type
bug.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4/4.0 regression] ICE on invalid member declaration
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/19964] [3.4/4.0 regression] ICE on invalid member declaration
  2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
@ 2005-02-15 11:42 ` pinskia at gcc dot gnu dot org
  2005-02-15 12:18 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-15 11:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-15 00:54 -------
: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).

So ever since the new parser was merged in.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-15 00:54:00
               date|                            |
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/19964] [3.4/4.0 regression] ICE on invalid member declaration
  2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
  2005-02-15 11:42 ` [Bug c++/19964] " pinskia at gcc dot gnu dot org
@ 2005-02-15 12:18 ` reichelt at gcc dot gnu dot org
  2005-05-19 17:35 ` [Bug c++/19964] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-15 12:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-15 00:55 -------
Btw, more segfaults can be generated with
A : A()   (since 2.95.3)
A : B()   (since 2.95.3)
A : A[]   (since 3.4.0)
A : B[]   (since 3.4.0)


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |3.4.4


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


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

* [Bug c++/19964] [3.4/4.0/4.1 regression] ICE on invalid member declaration
  2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
  2005-02-15 11:42 ` [Bug c++/19964] " pinskia at gcc dot gnu dot org
  2005-02-15 12:18 ` reichelt at gcc dot gnu dot org
@ 2005-05-19 17:35 ` mmitchel at gcc dot gnu dot org
  2005-07-22 21:18 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c++/19964] [3.4/4.0/4.1 regression] ICE on invalid member declaration
  2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-19 17:35 ` [Bug c++/19964] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2005-07-22 21:18 ` pinskia at gcc dot gnu dot org
  2005-09-15 11:51 ` nathan at gcc dot gnu dot org
  2005-09-27 16:14 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-22 21:13 -------
Moving to 4.0.2 pre Mark.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |4.0.2


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


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

* [Bug c++/19964] [3.4/4.0/4.1 regression] ICE on invalid member declaration
  2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-07-22 21:18 ` pinskia at gcc dot gnu dot org
@ 2005-09-15 11:51 ` nathan at gcc dot gnu dot org
  2005-09-27 16:14 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-09-15 11:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-09-04 18:20:33         |2005-09-15 11:51:31
               date|                            |


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


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

* [Bug c++/19964] [3.4/4.0/4.1 regression] ICE on invalid member declaration
  2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-09-15 11:51 ` nathan at gcc dot gnu dot org
@ 2005-09-27 16:14 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-15  9:30 [Bug c++/19964] New: [3.4/4.0 regression] ICE on invalid member declaration reichelt at gcc dot gnu dot org
2005-02-15 11:42 ` [Bug c++/19964] " pinskia at gcc dot gnu dot org
2005-02-15 12:18 ` reichelt at gcc dot gnu dot org
2005-05-19 17:35 ` [Bug c++/19964] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-07-22 21:18 ` pinskia at gcc dot gnu dot org
2005-09-15 11:51 ` nathan at gcc dot gnu dot org
2005-09-27 16:14 ` mmitchel 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).