public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
@ 2006-07-06 16:34 ` reichelt at gcc dot gnu dot org
  2006-07-17  3:08 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-06 16:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28284]  New: [4.2 regression] ICE with invalid static const variable
@ 2006-07-06 16:34 reichelt at gcc dot gnu dot org
  2006-07-06 16:34 ` [Bug c++/28284] " reichelt at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-06 16:34 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

=============================================
template<int> struct A
{
  static const int i=x, j, k;
};

template<int N> const int A<N>::j = i;
template<int N> const int A<N>::k = j;

A<0> a;
=============================================

bug.cc:3: error: 'x' was not declared in this scope
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2 regression] ICE with invalid static 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=28284


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

* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
  2006-07-06 16:34 ` [Bug c++/28284] " reichelt at gcc dot gnu dot org
@ 2006-07-17  3:08 ` mmitchel at gcc dot gnu dot org
  2006-08-04  6:29 ` simartin at users dot sourceforge dot net
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17  3:08 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=28284


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

* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
  2006-07-06 16:34 ` [Bug c++/28284] " reichelt at gcc dot gnu dot org
  2006-07-17  3:08 ` mmitchel at gcc dot gnu dot org
@ 2006-08-04  6:29 ` simartin at users dot sourceforge dot net
  2006-08-04 19:10 ` patchapp at dberlin dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: simartin at users dot sourceforge dot net @ 2006-08-04  6:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from simartin at users dot sourceforge dot net  2006-08-04 06:29 -------
I am boostrapping and regtesting a patch for this.
Simon


-- 

simartin at users dot sourceforge dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at users dot
                   |                            |sourceforge dot net


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


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

* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-08-04  6:29 ` simartin at users dot sourceforge dot net
@ 2006-08-04 19:10 ` patchapp at dberlin dot org
  2006-09-03  5:50 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2006-08-04 19:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-08-04 19:10 -------
Subject: Bug number PR c++/28284

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-08/msg00099.html


-- 


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


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

* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-08-04 19:10 ` patchapp at dberlin dot org
@ 2006-09-03  5:50 ` pinskia at gcc dot gnu dot org
  2006-09-07 17:25 ` jason at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03  5:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-09-03 05:50 -------
Confirmed.


-- 

pinskia 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         |2006-09-03 05:50:35
               date|                            |


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


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

* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-09-03  5:50 ` pinskia at gcc dot gnu dot org
@ 2006-09-07 17:25 ` jason at gcc dot gnu dot org
  2006-09-07 18:36 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 17:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2006-09-07 17:25 -------
Subject: Bug 28284

Author: jason
Date: Thu Sep  7 17:25:05 2006
New Revision: 116755

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116755
Log:
        PR c++/28284
        * pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if
it
        is NULL.

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


-- 


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


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

* [Bug c++/28284] [4.2 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-09-07 17:25 ` jason at gcc dot gnu dot org
@ 2006-09-07 18:36 ` pinskia at gcc dot gnu dot org
  2006-11-18 11:39 ` [Bug c++/28284] [4.1 " reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-07 18:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-07 18:36 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28284] [4.1 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-09-07 18:36 ` pinskia at gcc dot gnu dot org
@ 2006-11-18 11:39 ` reichelt at gcc dot gnu dot org
  2006-12-02  2:15 ` patchapp at dberlin dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-18 11:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-11-18 11:39 -------
Mark, your patch for PR29106 backported this bug back to the 4.1 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|[4.2 regression] ICE with   |[4.1 regression] ICE with
                   |invalid static const        |invalid static const
                   |variable                    |variable
   Target Milestone|4.2.0                       |4.1.2


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


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

* [Bug c++/28284] [4.1 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-11-18 11:39 ` [Bug c++/28284] [4.1 " reichelt at gcc dot gnu dot org
@ 2006-12-02  2:15 ` patchapp at dberlin dot org
  2006-12-03 10:20 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2006-12-02  2:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from patchapp at dberlin dot org  2006-12-02 02:15 -------
Subject: Bug number PR c++/28284

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-12/msg00064.html


-- 


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


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

* [Bug c++/28284] [4.1 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-12-02  2:15 ` patchapp at dberlin dot org
@ 2006-12-03 10:20 ` reichelt at gcc dot gnu dot org
  2006-12-03 17:51 ` pinskia at gcc dot gnu dot org
  2007-01-27 19:59 ` reichelt at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-03 10:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2006-12-03 10:20 -------
Subject: Bug 28284

Author: reichelt
Date: Sun Dec  3 10:19:59 2006
New Revision: 119462

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119462
Log:
        Backport:
        2006-08-27  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/28284
        * pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if
it
        is NULL.

        * g++.dg/template/pr28284.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/pr28284.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/pt.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28284] [4.1 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-12-03 10:20 ` reichelt at gcc dot gnu dot org
@ 2006-12-03 17:51 ` pinskia at gcc dot gnu dot org
  2007-01-27 19:59 ` reichelt at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-03 17:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2006-12-03 17:51 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28284] [4.1 regression] ICE with invalid static const variable
  2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2006-12-03 17:51 ` pinskia at gcc dot gnu dot org
@ 2007-01-27 19:59 ` reichelt at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-27 19:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from reichelt at gcc dot gnu dot org  2007-01-27 19:58 -------
Subject: Bug 28284

Author: reichelt
Date: Sat Jan 27 19:58:38 2007
New Revision: 121238

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121238
Log:
        Backport:
        2006-11-13  Mark Mitchell  <mark@codesourcery.com>

        PR c++/29106
        * init.c (constant_value_1): Treat a DECL_INITIAL of
        error_mark_node as meaning that the variable is uninitialized,
        rather than erroneously initialized.

        * g++.dg/init/self1.C: New test.
        * g++.dg/other/fold1.C: Adjust error markers.
        * g++.dg/init/member1.C: Likewise.

        2006-08-27  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/28284
        * pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if
it
        is NULL.

        * g++.dg/template/pr28284.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/init/self1.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/pr28284.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/init.c
    branches/gcc-4_0-branch/gcc/cp/pt.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/init/member1.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/fold1.C


-- 


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


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

end of thread, other threads:[~2007-01-27 19:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 16:34 [Bug c++/28284] New: [4.2 regression] ICE with invalid static const variable reichelt at gcc dot gnu dot org
2006-07-06 16:34 ` [Bug c++/28284] " reichelt at gcc dot gnu dot org
2006-07-17  3:08 ` mmitchel at gcc dot gnu dot org
2006-08-04  6:29 ` simartin at users dot sourceforge dot net
2006-08-04 19:10 ` patchapp at dberlin dot org
2006-09-03  5:50 ` pinskia at gcc dot gnu dot org
2006-09-07 17:25 ` jason at gcc dot gnu dot org
2006-09-07 18:36 ` pinskia at gcc dot gnu dot org
2006-11-18 11:39 ` [Bug c++/28284] [4.1 " reichelt at gcc dot gnu dot org
2006-12-02  2:15 ` patchapp at dberlin dot org
2006-12-03 10:20 ` reichelt at gcc dot gnu dot org
2006-12-03 17:51 ` pinskia at gcc dot gnu dot org
2007-01-27 19:59 ` reichelt 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).