public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27804]  New: [4.2 regression] ICE with invalid const variable
@ 2006-05-29 20:53 reichelt at gcc dot gnu dot org
  2006-05-29 21:10 ` [Bug c++/27804] " pinskia 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 @ 2006-05-29 20:53 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code causes an ICE on mainline:

=====================
bool foo()
{
    const int i = X;
    return i > 0;
}
=====================

bug.cc: In function 'bool foo()':
bug.cc:3: error: 'X' was not declared in this scope
bug.cc:4: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in ocp_convert, at cp/cvt.c:630
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2 regression] ICE with invalid const variable
           Product: gcc
           Version: 4.2.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=27804


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
@ 2006-05-29 21:10 ` pinskia at gcc dot gnu dot org
  2006-05-31 20:35 ` tbm at cyrius dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-29 21:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
  2006-05-29 21:10 ` [Bug c++/27804] " pinskia at gcc dot gnu dot org
@ 2006-05-31 20:35 ` tbm at cyrius dot com
  2006-06-01 12:42 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tbm at cyrius dot com @ 2006-05-31 20:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at cyrius dot com  2006-05-31 20:35 -------
This is fairly new - didn't happen with 20060508.


-- 


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
  2006-05-29 21:10 ` [Bug c++/27804] " pinskia at gcc dot gnu dot org
  2006-05-31 20:35 ` tbm at cyrius dot com
@ 2006-06-01 12:42 ` reichelt at gcc dot gnu dot org
  2006-06-02  9:45 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-06-01 12:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-06-01 12:40 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-06-01 12:42 ` reichelt at gcc dot gnu dot org
@ 2006-06-02  9:45 ` patchapp at dberlin dot org
  2006-06-04 19:41 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-06-02  9:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-06-02 09:45 -------
Subject: Bug number PR c++/27804

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-06/msg00060.html


-- 


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-06-02  9:45 ` patchapp at dberlin dot org
@ 2006-06-04 19:41 ` mmitchel at gcc dot gnu dot org
  2006-06-05  0:26 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 19:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-06-04 19:39 -------
This patch is OK.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-06-04 19:41 ` mmitchel at gcc dot gnu dot org
@ 2006-06-05  0:26 ` reichelt at gcc dot gnu dot org
  2006-06-05  0:52 ` reichelt at gcc dot gnu dot org
  2006-06-29 21:40 ` patchapp at dberlin dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-06-05  0:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-06-05 00:24 -------
Subject: Bug 27804

Author: reichelt
Date: Mon Jun  5 00:24:41 2006
New Revision: 114377

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114377
Log:
        PR c++/27804
        * init.c (constant_value_1): Return decl instead of error_mark_node
        for invalid initializers.

        PR c++/27804
        * g++.dg/init/const4.C: New test.
        * g++.dg/init/member1.C: Add error-marker.
        * g++.dg/other/fold1.C: Adjust error-marker.

Added:
    trunk/gcc/testsuite/g++.dg/init/const4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/init/member1.C
    trunk/gcc/testsuite/g++.dg/other/fold1.C


-- 


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-06-05  0:26 ` reichelt at gcc dot gnu dot org
@ 2006-06-05  0:52 ` reichelt at gcc dot gnu dot org
  2006-06-29 21:40 ` patchapp at dberlin dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-06-05  0:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-06-05 00:26 -------
Fixed on mainline.


-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/27804] [4.2 regression] ICE with invalid const variable
  2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-06-05  0:52 ` reichelt at gcc dot gnu dot org
@ 2006-06-29 21:40 ` patchapp at dberlin dot org
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-06-29 21:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from patchapp at dberlin dot org  2006-06-29 21:40 -------
Subject: Bug number PR c++/27804

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-06/msg00060.html


-- 


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


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

end of thread, other threads:[~2006-06-29 21:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-29 20:53 [Bug c++/27804] New: [4.2 regression] ICE with invalid const variable reichelt at gcc dot gnu dot org
2006-05-29 21:10 ` [Bug c++/27804] " pinskia at gcc dot gnu dot org
2006-05-31 20:35 ` tbm at cyrius dot com
2006-06-01 12:42 ` reichelt at gcc dot gnu dot org
2006-06-02  9:45 ` patchapp at dberlin dot org
2006-06-04 19:41 ` mmitchel at gcc dot gnu dot org
2006-06-05  0:26 ` reichelt at gcc dot gnu dot org
2006-06-05  0:52 ` reichelt at gcc dot gnu dot org
2006-06-29 21:40 ` patchapp at dberlin 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).