public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32113]  New: [4.1/4.2/4.3 regression] ICE with invalid template parameter
@ 2007-05-27 22:09 reichelt at gcc dot gnu dot org
  2007-05-27 22:09 ` [Bug c++/32113] " 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 @ 2007-05-27 22:09 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.1.0:

=====================================================
template<int> struct A;

template<typename T> void foo (A<&T::template i>);

template void foo<A<0> > (A<0>);
=====================================================

bug.cc:3: error: '#'unbound_class_template' not supported by
dump_decl#<declaration error>' is not a template
bug.cc:5: internal compiler error: in lookup_member, at cp/search.c:1203
Please submit a full bug report, [etc.]

Btw, the hosed diagnostic in the first line of the error message is tracked
in PR 32112.


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with invalid template
                    parameter
           Product: gcc
           Version: 4.3.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=32113


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
@ 2007-05-27 22:09 ` reichelt at gcc dot gnu dot org
  2007-06-29 18:35 ` mmitchel 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 @ 2007-05-27 22:09 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
  2007-05-27 22:09 ` [Bug c++/32113] " reichelt at gcc dot gnu dot org
@ 2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
  2007-08-29 10:19 ` pcarlini at suse dot de
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:35 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
  2007-05-27 22:09 ` [Bug c++/32113] " reichelt at gcc dot gnu dot org
  2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
@ 2007-08-29 10:19 ` pcarlini at suse dot de
  2007-08-31  9:45 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2007-08-29 10:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-29 10:19:41
               date|                            |


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


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-08-29 10:19 ` pcarlini at suse dot de
@ 2007-08-31  9:45 ` paolo at gcc dot gnu dot org
  2007-08-31  9:56 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-08-31  9:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo at gcc dot gnu dot org  2007-08-31 09:45 -------
Subject: Bug 32113

Author: paolo
Date: Fri Aug 31 09:44:54 2007
New Revision: 127963

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127963
Log:
/cp
2007-08-31  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32113
        * search.c (lookup_member): Check the name argument for
        error_mark_node.

/testsuite
2007-08-31  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32113
        * g++.dg/template/crash70.C: New.

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


-- 


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


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-08-31  9:45 ` paolo at gcc dot gnu dot org
@ 2007-08-31  9:56 ` paolo at gcc dot gnu dot org
  2007-08-31  9:58 ` pcarlini at suse dot de
  2007-08-31  9:58 ` paolo at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-08-31  9:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo at gcc dot gnu dot org  2007-08-31 09:55 -------
Subject: Bug 32113

Author: paolo
Date: Fri Aug 31 09:55:43 2007
New Revision: 127965

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127965
Log:
/cp
2007-08-31  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32113
        * search.c (lookup_member): Check the name argument for
        error_mark_node.

/testsuite
2007-08-31  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32113
        * g++.dg/template/crash70.C: New.

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


-- 


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


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-08-31  9:56 ` paolo at gcc dot gnu dot org
@ 2007-08-31  9:58 ` pcarlini at suse dot de
  2007-08-31  9:58 ` paolo at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2007-08-31  9:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pcarlini at suse dot de  2007-08-31 09:58 -------
Fixed.


-- 

pcarlini at suse dot de changed:

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


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


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

* [Bug c++/32113] [4.1/4.2/4.3 regression] ICE with invalid template parameter
  2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-08-31  9:58 ` pcarlini at suse dot de
@ 2007-08-31  9:58 ` paolo at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-08-31  9:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2007-08-31 09:58 -------
Subject: Bug 32113

Author: paolo
Date: Fri Aug 31 09:57:50 2007
New Revision: 127966

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127966
Log:
/cp
2007-08-31  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32113
        * search.c (lookup_member): Check the name argument for
        error_mark_node.

/testsuite
2007-08-31  Paolo Carlini  <pcarlini@suse.de>

        PR c++/32113
        * g++.dg/template/crash70.C: New.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash70.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/search.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2007-08-31  9:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-27 22:09 [Bug c++/32113] New: [4.1/4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
2007-05-27 22:09 ` [Bug c++/32113] " reichelt at gcc dot gnu dot org
2007-06-29 18:35 ` mmitchel at gcc dot gnu dot org
2007-08-29 10:19 ` pcarlini at suse dot de
2007-08-31  9:45 ` paolo at gcc dot gnu dot org
2007-08-31  9:56 ` paolo at gcc dot gnu dot org
2007-08-31  9:58 ` pcarlini at suse dot de
2007-08-31  9:58 ` paolo 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).