public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28741]  New: [4.2 regression] ICE with static member in invalid template class
@ 2006-08-15 19:01 reichelt at gcc dot gnu dot org
  2006-08-15 19:01 ` [Bug c++/28741] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 19:01 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE on mainline:

=========================================
template<void> struct A
{
  static int i;
};

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

bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc: In instantiation of 'A<<expression error> >':
bug.cc:6:   instantiated from here
bug.cc:3: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'error_mark'  in decl_anon_ns_mem_p, at
cp/tree.c:1408
Please submit a full bug report, [etc.]

This is probably fallout from PR 27668.


-- 
           Summary: [4.2 regression] ICE with static member in invalid
                    template class
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 BugsThisDependsOn: 27668


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


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
@ 2006-08-15 19:01 ` reichelt at gcc dot gnu dot org
  2006-08-18  4:46 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 19:01 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=28741


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
  2006-08-15 19:01 ` [Bug c++/28741] " reichelt at gcc dot gnu dot org
@ 2006-08-18  4:46 ` pinskia at gcc dot gnu dot org
  2006-08-19 19:11 ` lmillward at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-18  4:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-18 04:46 -------
Actually I don't think this is fallout of that patch but really of the
anonymous namespace changes which added decl_anon_ns_mem_p.

Confirmed.

Most likely introduced by:
2006-06-29  Jason Merrill  <jason@redhat.com>

        PR c++/21581
        PR c++/25915
        * tree.c (decl_anon_ns_mem_p): New function.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|27668                       |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-18 04:46:37
               date|                            |


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


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
  2006-08-15 19:01 ` [Bug c++/28741] " reichelt at gcc dot gnu dot org
  2006-08-18  4:46 ` pinskia at gcc dot gnu dot org
@ 2006-08-19 19:11 ` lmillward at gcc dot gnu dot org
  2006-08-20  7:01 ` patchapp at dberlin dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-19 19:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

lmillward at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lmillward at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-08-18 04:46:37         |2006-08-19 19:11:01
               date|                            |


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


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-08-19 19:11 ` lmillward at gcc dot gnu dot org
@ 2006-08-20  7:01 ` patchapp at dberlin dot org
  2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2006-08-20  7:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-08-20 07:00 -------
Subject: Bug number PR c++/28741

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/msg00715.html


-- 


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


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-08-20  7:01 ` patchapp at dberlin dot org
@ 2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
  2006-08-21 17:41 ` lmillward at gcc dot gnu dot org
  2006-08-21 17:42 ` lmillward at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:43 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=28741


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
@ 2006-08-21 17:41 ` lmillward at gcc dot gnu dot org
  2006-08-21 17:42 ` lmillward at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-21 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from lmillward at gcc dot gnu dot org  2006-08-21 17:41 -------
Subject: Bug 28741

Author: lmillward
Date: Mon Aug 21 17:41:18 2006
New Revision: 116303

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116303
Log:
        PR c++/28741
        * tree.c (decl_anon_ns_mem_p): Robustify.
        * decl2.c (determine_visibility): Likewise.

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


Added:
    trunk/gcc/testsuite/g++.dg/template/void7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
  2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-08-21 17:41 ` lmillward at gcc dot gnu dot org
@ 2006-08-21 17:42 ` lmillward at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-21 17:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from lmillward at gcc dot gnu dot org  2006-08-21 17:42 -------
Fixed on mainline.


-- 

lmillward at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-08-21 17:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-15 19:01 [Bug c++/28741] New: [4.2 regression] ICE with static member in invalid template class reichelt at gcc dot gnu dot org
2006-08-15 19:01 ` [Bug c++/28741] " reichelt at gcc dot gnu dot org
2006-08-18  4:46 ` pinskia at gcc dot gnu dot org
2006-08-19 19:11 ` lmillward at gcc dot gnu dot org
2006-08-20  7:01 ` patchapp at dberlin dot org
2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
2006-08-21 17:41 ` lmillward at gcc dot gnu dot org
2006-08-21 17:42 ` lmillward 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).