public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30535]  New: [4.2/4.3 regression] ICE with invalid template operator
@ 2007-01-21 23:52 reichelt at gcc dot gnu dot org
  2007-01-21 23:52 ` [Bug c++/30535] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-21 23:52 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline and 4.2 branch:

====================================
struct A {};

template<A, typename T> int operator-(A, T);

int i = A() - 0;
====================================

bug.cc:3: error: 'struct A' is not a valid type for a template constant
parameter
bug.cc:5: internal compiler error: in template_decl_level, at cp/pt.c:10412
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3 regression] ICE with invalid template operator
           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=30535


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

* [Bug c++/30535] [4.2/4.3 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
@ 2007-01-21 23:52 ` reichelt at gcc dot gnu dot org
  2007-02-11  3:56 ` bangerth at dealii dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-21 23:52 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=30535


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

* [Bug c++/30535] [4.2/4.3 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
  2007-01-21 23:52 ` [Bug c++/30535] " reichelt at gcc dot gnu dot org
@ 2007-02-11  3:56 ` bangerth at dealii dot org
  2007-02-19 21:02 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2007-02-11  3:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at dealii dot org  2007-02-11 03:56 -------
Confirmed.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-11 03:56:38
               date|                            |


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


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

* [Bug c++/30535] [4.2/4.3 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
  2007-01-21 23:52 ` [Bug c++/30535] " reichelt at gcc dot gnu dot org
  2007-02-11  3:56 ` bangerth at dealii dot org
@ 2007-02-19 21:02 ` mmitchel at gcc dot gnu dot org
  2007-05-14 21:30 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-19 21:02 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=30535


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

* [Bug c++/30535] [4.2/4.3 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-02-19 21:02 ` mmitchel at gcc dot gnu dot org
@ 2007-05-14 21:30 ` mmitchel at gcc dot gnu dot org
  2007-07-08 15:15 ` pcarlini at suse dot de
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-05-14 21:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2007-05-14 22:27 -------
Will not be fixed in 4.2.0; retargeting at 4.2.1.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/30535] [4.2/4.3 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-05-14 21:30 ` mmitchel at gcc dot gnu dot org
@ 2007-07-08 15:15 ` pcarlini at suse dot de
  2007-07-08 22:41 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pcarlini at suse dot de @ 2007-07-08 15:15 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|NEW                         |ASSIGNED


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


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

* [Bug c++/30535] [4.2/4.3 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-07-08 15:15 ` pcarlini at suse dot de
@ 2007-07-08 22:41 ` paolo at gcc dot gnu dot org
  2007-07-20  3:50 ` [Bug c++/30535] [4.2 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-07-08 22:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2007-07-08 22:41 -------
Subject: Bug 30535

Author: paolo
Date: Sun Jul  8 22:41:12 2007
New Revision: 126470

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

        PR c++/30535
        * pt.c (unify): Never pass error_mark_node to template_decl_level.

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

        PR c++/30535
        * g++.dg/template/operator10.C: New.    

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


-- 


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


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

* [Bug c++/30535] [4.2 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-07-08 22:41 ` paolo at gcc dot gnu dot org
@ 2007-07-20  3:50 ` mmitchel at gcc dot gnu dot org
  2007-07-24  9:18 ` paolo at gcc dot gnu dot org
  2007-07-24  9:20 ` pcarlini at suse dot de
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-07-20  3:50 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.1                       |4.2.2


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


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

* [Bug c++/30535] [4.2 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-07-20  3:50 ` [Bug c++/30535] [4.2 " mmitchel at gcc dot gnu dot org
@ 2007-07-24  9:18 ` paolo at gcc dot gnu dot org
  2007-07-24  9:20 ` pcarlini at suse dot de
  8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-07-24  9:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2007-07-24 09:18 -------
Subject: Bug 30535

Author: paolo
Date: Tue Jul 24 09:18:39 2007
New Revision: 126871

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

        PR c++/30535
        * pt.c (unify): Never pass error_mark_node to template_decl_level.

/testsuite
2007-07-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/30535
        * g++.dg/template/operator10.C: New.    

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


-- 


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


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

* [Bug c++/30535] [4.2 regression] ICE with invalid template operator
  2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-07-24  9:18 ` paolo at gcc dot gnu dot org
@ 2007-07-24  9:20 ` pcarlini at suse dot de
  8 siblings, 0 replies; 10+ messages in thread
From: pcarlini at suse dot de @ 2007-07-24  9:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pcarlini at suse dot de  2007-07-24 09:20 -------
Fixed for 4.2.2.


-- 

pcarlini at suse dot de changed:

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


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


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

end of thread, other threads:[~2007-07-24  9:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-21 23:52 [Bug c++/30535] New: [4.2/4.3 regression] ICE with invalid template operator reichelt at gcc dot gnu dot org
2007-01-21 23:52 ` [Bug c++/30535] " reichelt at gcc dot gnu dot org
2007-02-11  3:56 ` bangerth at dealii dot org
2007-02-19 21:02 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:30 ` mmitchel at gcc dot gnu dot org
2007-07-08 15:15 ` pcarlini at suse dot de
2007-07-08 22:41 ` paolo at gcc dot gnu dot org
2007-07-20  3:50 ` [Bug c++/30535] [4.2 " mmitchel at gcc dot gnu dot org
2007-07-24  9:18 ` paolo at gcc dot gnu dot org
2007-07-24  9:20 ` pcarlini at suse dot de

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).