public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25300]  New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
@ 2005-12-07 20:05 reichelt at gcc dot gnu dot org
  2005-12-07 20:06 ` [Bug c++/25300] " 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-12-07 20:05 UTC (permalink / raw)
  To: gcc-bugs

The testcase g++.dg/template/inherit.C causes an ICE on the 4.1 branch
and mainline:

=====================================================
template<typename T>
struct X { void f() { } };

struct Z : X<int> { };

int main()
{
  Z z;
  z.X::f();  // { dg-error ".*" "" }
}
=====================================================

inherit.C: In function 'int main()':
inherit.C:9: error: 'template<class T> struct X' used without template
parameters
inherit.C:9: internal compiler error: in finish_class_member_access_expr, at
cp/typeck.c:1996
Please submit a full bug report, [etc.]

Because of the catch-all marker { dg-error ".*" "" } the testcase still
PASSes despite the ICE.
That means, that the testcase should also be fixed

Btw, this is the only ICE I found in the logfiles for 4.1 and 4.2
(and also 4.0) that wasn't flagged.


-- 
           Summary: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
           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=25300


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

* [Bug c++/25300] [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
  2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
@ 2005-12-07 20:06 ` pinskia at gcc dot gnu dot org
  2005-12-09 17:48 ` 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-12-07 20:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-07 20:06 -------
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         |2005-12-07 20:06:48
               date|                            |
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/25300] [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
  2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
  2005-12-07 20:06 ` [Bug c++/25300] " pinskia at gcc dot gnu dot org
@ 2005-12-09 17:48 ` reichelt at gcc dot gnu dot org
  2005-12-12  6:23 ` 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-12-09 17:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2005-12-09 17:48 -------
Mark, the ICE appeared with your patch for PR20293:
http://gcc.gnu.org/ml/gcc-cvs/2005-11/msg00580.html


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/25300] [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
  2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
  2005-12-07 20:06 ` [Bug c++/25300] " pinskia at gcc dot gnu dot org
  2005-12-09 17:48 ` reichelt at gcc dot gnu dot org
@ 2005-12-12  6:23 ` mmitchel at gcc dot gnu dot org
  2005-12-12 16:29 ` mmitchel 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-12-12  6:23 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/25300] [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
  2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-12-12  6:23 ` mmitchel at gcc dot gnu dot org
@ 2005-12-12 16:29 ` mmitchel at gcc dot gnu dot org
  2005-12-12 16:30 ` mmitchel at gcc dot gnu dot org
  2005-12-12 16:32 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-12-12 16:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2005-12-12 16:29 -------
Subject: Bug 25300

Author: mmitchel
Date: Mon Dec 12 16:29:44 2005
New Revision: 108413

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108413
Log:
        PR c++/25300
        * tree.c (build_qualified_name): Return error_mark_node for
        erroneous input.
        PR c++/25300
        * g++.dg/template/inherit.C: Do not use a generic error message.

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


-- 


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


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

* [Bug c++/25300] [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
  2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-12-12 16:29 ` mmitchel at gcc dot gnu dot org
@ 2005-12-12 16:30 ` mmitchel at gcc dot gnu dot org
  2005-12-12 16:32 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-12-12 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2005-12-12 16:30 -------
Subject: Bug 25300

Author: mmitchel
Date: Mon Dec 12 16:30:24 2005
New Revision: 108414

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108414
Log:
        PR c++/25300
        * tree.c (build_qualified_name): Return error_mark_node for
        erroneous input.
        PR c++/25300
        * g++.dg/template/inherit.C: Do not use a generic error message.

Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/tree.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/inherit.C


-- 


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


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

* [Bug c++/25300] [4.1/4.2 regression] ICE with g++.dg/template/inherit.C
  2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-12-12 16:30 ` mmitchel at gcc dot gnu dot org
@ 2005-12-12 16:32 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-12-12 16:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2005-12-12 16:32 -------
Fixed in 4.1.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2005-12-12 16:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-07 20:05 [Bug c++/25300] New: [4.1/4.2 regression] ICE with g++.dg/template/inherit.C reichelt at gcc dot gnu dot org
2005-12-07 20:06 ` [Bug c++/25300] " pinskia at gcc dot gnu dot org
2005-12-09 17:48 ` reichelt at gcc dot gnu dot org
2005-12-12  6:23 ` mmitchel at gcc dot gnu dot org
2005-12-12 16:29 ` mmitchel at gcc dot gnu dot org
2005-12-12 16:30 ` mmitchel at gcc dot gnu dot org
2005-12-12 16:32 ` 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).