public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&);
@ 2003-12-02  6:29 fw at deneb dot enyo dot de
  2003-12-02 14:31 ` [Bug c++/13268] " bangerth at dealii dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: fw at deneb dot enyo dot de @ 2003-12-02  6:29 UTC (permalink / raw)
  To: gcc-bugs

This apparently illegal code snippet triggers an ICE:

bool foo(const operator&);

/tmp/t.cc:1: error: declaration of `operator&' as non-function
/tmp/t.cc:1: internal compiler error: Segmentation fault

-- 
           Summary: ICE on illegal code: bool foo(const operator&);
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fw at deneb dot enyo dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
@ 2003-12-02 14:31 ` bangerth at dealii dot org
  2003-12-02 15:51 ` pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: bangerth at dealii dot org @ 2003-12-02 14:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2003-12-02 14:31 -------
Confirmed, the same behavior since 2.95 at least. Since this
is only ice-after-error, it gets low priority.

W.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-02 14:31:02
               date|                            |


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
  2003-12-02 14:31 ` [Bug c++/13268] " bangerth at dealii dot org
@ 2003-12-02 15:51 ` pinskia at gcc dot gnu dot org
  2003-12-24  6:31 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-02 15:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-02 15:51 -------
Program received signal EXC_BAD_ACCESS, Could not access memory.
grokdeclarator (declarator=0x4187cec0, declspecs=0x4187b0f0, decl_context=NORMAL, 
initialized=0, attrlist=0xbffff964) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
cp/decl.c:8608
8608          if (VOID_TYPE_P (type))
(gdb) bt
#0  grokdeclarator (declarator=0x4187cec0, declspecs=0x4187b0f0, decl_context=NORMAL, 
initialized=0, attrlist=0xbffff964) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
cp/decl.c:8608
#1  0x00019c8c in start_decl (declarator=0x0, declspecs=0x0, initialized=0, attributes=0x0, 
prefix_attributes=0x453c94) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/
decl.c:3651
#2  0x00019c8c in start_decl (declarator=0x0, declspecs=0x0, initialized=0, attributes=0x0, 
prefix_attributes=0x453c94) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/
decl.c:3651
#3  0x0005b738 in cp_parser_init_declarator (parser=0x0, decl_specifiers=0x0, 
prefix_attributes=0x4187cec0, function_definition_allowed_p=4537492, member_p=1099411696, 
declares_class_or_enum=0, function_definition_p=0x453c94) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/cp/parser.c:9579
#4  0x0005ba84 in cp_parser_simple_declaration (parser=0x0, 
function_definition_allowed_p=false) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/
gcc/cp/parser.c:6246
#5  0x0005bc70 in cp_parser_block_declaration (parser=0x4187acb0, statement_p=false) at /
Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:6162
#6  0x0005c8f0 in cp_parser_declaration (parser=0x4187acb0) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:6082
#7  0x0005cbf8 in cp_parser_declaration_seq_opt (parser=0x4187acb0) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:5991
#8  0x0005cdc0 in c_parse_file () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
cp/parser.c:2195
#9  0x000bbec8 in c_common_parse_file (set_yydebug=1090264352) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/c-opts.c:1227
p #10 0x0031e7ac in toplev_main (argc=4588092, argv=0x1) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/toplev.c:1808
#11 0x00001d10 in _start (argc=14, argv=0xbffffd70, envp=0xbffffdac) at /SourceCache/Csu/
Csu-46/crt.c:267
#12 0x00001b84 in start ()
(gdb) p type
$1 = 0x40fb68c0
(gdb) p type
$2 = 0x40fb68c0
(gdb) p debug_tree(type)
 <boolean_type 0x40fb68c0 bool unsigned SI
    size <integer_cst 0x40fb4300 type <integer_type 0x40fc1af0 bit_size_type> constant 32>
    unit size <integer_cst 0x40fb43a8 type <integer_type 0x40fc1a80 long unsigned int> constant 
4>
    align 32 symtab 0 alias set -1 precision 1 min <integer_cst 0x40fb4588 0> max <integer_cst 
0x40fb45d0 1>>
$3 = void
(gdb) l
8603
8604          if (attrs)
8605            cplus_decl_attributes (&decl, attrs, 0);
8606
8607          type = TREE_TYPE (decl);
8608          if (VOID_TYPE_P (type))
8609            {
8610              if (same_type_p (type, void_type_node)
8611                  && !DECL_NAME (decl) && !result && !chain && !ellipsis)
8612                /* this is a parmlist of `(void)', which is ok.  */

-- 


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
  2003-12-02 14:31 ` [Bug c++/13268] " bangerth at dealii dot org
  2003-12-02 15:51 ` pinskia at gcc dot gnu dot org
@ 2003-12-24  6:31 ` pinskia at gcc dot gnu dot org
  2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-24  6:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-24 06:29 -------
I have a fix for at least the non checking case.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Target Milestone|---                         |3.4.0


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (2 preceding siblings ...)
  2003-12-24  6:31 ` pinskia at gcc dot gnu dot org
@ 2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
  2003-12-24 18:16 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-24 18:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-24 17:43 -------
My patch fixes it, will submit it soon.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-12-02 14:31:02         |2003-12-24 17:43:00
               date|                            |


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (3 preceding siblings ...)
  2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
@ 2003-12-24 18:16 ` pinskia at gcc dot gnu dot org
  2003-12-25 16:46 ` cvs-commit at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-24 18:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-24 18:03 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02051.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (4 preceding siblings ...)
  2003-12-24 18:16 ` pinskia at gcc dot gnu dot org
@ 2003-12-25 16:46 ` cvs-commit at gcc dot gnu dot org
  2003-12-25 17:24 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-25 16:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-12-25 16:28 -------
Subject: Bug 13268

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2003-12-25 16:28:51

Modified files:
	gcc/cp         : pt.c class.c ChangeLog 

Log message:
	PR c++/13268, c++/13339
	* class.c (add_method): Return early when method is error_mark_node.
	* pt.c (tsubst_friend_function): Return early when new_friend is
	error_mark_node.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.807&r2=1.808
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.590&r2=1.591
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3834&r2=1.3835



-- 


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (5 preceding siblings ...)
  2003-12-25 16:46 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-25 17:24 ` pinskia at gcc dot gnu dot org
  2003-12-30 21:13 ` reichelt at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-25 17:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-25 16:29 -------
Fixed for 3.4.

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


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (6 preceding siblings ...)
  2003-12-25 17:24 ` pinskia at gcc dot gnu dot org
@ 2003-12-30 21:13 ` reichelt at gcc dot gnu dot org
  2003-12-30 21:15 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-30 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-12-30 20:34 -------
I still get a segfault on i686-pc-linux-gnu with gcc 3.4.0 20031229
(checking enabled):

PR13268.cc:1: error: declaration of `operator&' as non-function
PR13268.cc:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


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


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (7 preceding siblings ...)
  2003-12-30 21:13 ` reichelt at gcc dot gnu dot org
@ 2003-12-30 21:15 ` pinskia at gcc dot gnu dot org
  2004-01-13  4:12 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-30 21:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-30 20:42 -------
The last part of the patch is needed:
Index: decl.c
============================================================
=======
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1170
diff -u -p -r1.1170 decl.c
--- decl.c      30 Dec 2003 12:18:26 -0000      1.1170
+++ decl.c      30 Dec 2003 20:41:50 -0000
@@ -8623,7 +8623,7 @@ grokparms (tree first_parm)
       split_specs_attrs (TREE_PURPOSE (decl), &specs, &attrs);
       decl = grokdeclarator (TREE_VALUE (decl), specs,
                             PARM, init != NULL_TREE, &attrs);
-      if (! decl || TREE_TYPE (decl) == error_mark_node)
+      if (! decl || !TREE_TYPE (decl) || TREE_TYPE (decl) == error_mark_node )
         continue;
 
       if (attrs)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
   Last reconfirmed|2003-12-24 17:43:00         |2003-12-30 20:42:56
               date|                            |


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (8 preceding siblings ...)
  2003-12-30 21:15 ` pinskia at gcc dot gnu dot org
@ 2004-01-13  4:12 ` pinskia at gcc dot gnu dot org
  2004-01-14  5:41 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-13  4:12 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.0                       |3.4.1


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (9 preceding siblings ...)
  2004-01-13  4:12 ` pinskia at gcc dot gnu dot org
@ 2004-01-14  5:41 ` pinskia at gcc dot gnu dot org
  2004-04-23 19:57 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-14  5:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |3.5.0


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (10 preceding siblings ...)
  2004-01-14  5:41 ` pinskia at gcc dot gnu dot org
@ 2004-04-23 19:57 ` pinskia at gcc dot gnu dot org
  2004-05-24 14:34 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-23 19:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-23 19:40 -------
Not working on it anymore.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (11 preceding siblings ...)
  2004-04-23 19:57 ` pinskia at gcc dot gnu dot org
@ 2004-05-24 14:34 ` pinskia at gcc dot gnu dot org
  2004-09-27  4:01 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 14:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (12 preceding siblings ...)
  2004-05-24 14:34 ` pinskia at gcc dot gnu dot org
@ 2004-09-27  4:01 ` pinskia at gcc dot gnu dot org
  2004-12-22  3:35 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27  4:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-27 04:01 -------
As I said I am no longer working on this so removing the patch keyword.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|patch                       |


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (13 preceding siblings ...)
  2004-09-27  4:01 ` pinskia at gcc dot gnu dot org
@ 2004-12-22  3:35 ` cvs-commit at gcc dot gnu dot org
  2004-12-23 16:21 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-22  3:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-22 03:35 -------
Subject: Bug 13268

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-12-22 03:34:59

Modified files:
	gcc/cp         : ChangeLog call.c decl.c parser.c tree.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/ext: packed8.C 
	gcc/testsuite/g++.dg/template: crash31.C crash30.C 

Log message:
	PR c++/18378
	* call.c (convert_like_real): Do not permit the use of a copy
	constructor to copy a packed field.
	
	PR c++/17413
	* decl.c (grokdeclarator): Return error_mark_node, not
	void_type_node, to indicate errors.
	* parser.c (cp_parser_template_parameter_list): Robustify.
	(cp_parser_template_parameter): Likewise.
	
	PR c++/19034
	* tree.c (cp_tree_equal): Handle OVERLOAD.
	
	PR c++/18378
	* g++.dg/ext/packed8.C: New test.
	
	PR c++/13268
	* g++.dg/template/crash31.C: New test.
	
	PR c++/19034
	* g++.dg/template/crash30.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4550&r2=1.4551
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.523&r2=1.524
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1345&r2=1.1346
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.296&r2=1.297
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&r1=1.420&r2=1.421
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/packed8.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash31.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash30.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4796&r2=1.4797



-- 


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (14 preceding siblings ...)
  2004-12-22  3:35 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-23 16:21 ` reichelt at gcc dot gnu dot org
  2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
  2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-23 16:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-23 16:21 -------
Fixed in mainline (which will become 4.0.0).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (15 preceding siblings ...)
  2004-12-23 16:21 ` reichelt at gcc dot gnu dot org
@ 2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
  2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-05 21:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-05 21:04 -------


*** This bug has been marked as a duplicate of 19063 ***

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


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


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

* [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
  2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
                   ` (16 preceding siblings ...)
  2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
@ 2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-05 21:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-05 21:04 -------
Reopending to mark as duplicate of PR 19063.

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


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


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

end of thread, other threads:[~2005-08-05 21:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-02  6:29 [Bug c++/13268] New: ICE on illegal code: bool foo(const operator&); fw at deneb dot enyo dot de
2003-12-02 14:31 ` [Bug c++/13268] " bangerth at dealii dot org
2003-12-02 15:51 ` pinskia at gcc dot gnu dot org
2003-12-24  6:31 ` pinskia at gcc dot gnu dot org
2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
2003-12-24 18:16 ` pinskia at gcc dot gnu dot org
2003-12-25 16:46 ` cvs-commit at gcc dot gnu dot org
2003-12-25 17:24 ` pinskia at gcc dot gnu dot org
2003-12-30 21:13 ` reichelt at gcc dot gnu dot org
2003-12-30 21:15 ` pinskia at gcc dot gnu dot org
2004-01-13  4:12 ` pinskia at gcc dot gnu dot org
2004-01-14  5:41 ` pinskia at gcc dot gnu dot org
2004-04-23 19:57 ` pinskia at gcc dot gnu dot org
2004-05-24 14:34 ` pinskia at gcc dot gnu dot org
2004-09-27  4:01 ` pinskia at gcc dot gnu dot org
2004-12-22  3:35 ` cvs-commit at gcc dot gnu dot org
2004-12-23 16:21 ` reichelt at gcc dot gnu dot org
2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
2005-08-05 21:04 ` 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).