* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
@ 2009-02-01 11:24 ` reichelt at gcc dot gnu dot org
2009-02-01 13:17 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-02-01 11:24 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
2009-02-01 11:24 ` [Bug c++/39060] " reichelt at gcc dot gnu dot org
@ 2009-02-01 13:17 ` rguenth at gcc dot gnu dot org
2009-02-07 11:36 ` paolo dot carlini at oracle dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-01 13:17 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
2009-02-01 11:24 ` [Bug c++/39060] " reichelt at gcc dot gnu dot org
2009-02-01 13:17 ` rguenth at gcc dot gnu dot org
@ 2009-02-07 11:36 ` paolo dot carlini at oracle dot com
2009-02-09 22:58 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-07 11:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2009-02-07 11:35 -------
Today I can't reproduce it. Do you?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-02-07 11:36 ` paolo dot carlini at oracle dot com
@ 2009-02-09 22:58 ` reichelt at gcc dot gnu dot org
2009-02-10 0:09 ` paolo dot carlini at oracle dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-02-09 22:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2009-02-09 22:58 -------
I can still reproduce it with trunk from 2009-02-07 (updated after your
comment).
As mentioned before the testcase is a little fragile. Some weeks ago I had a
much larger testcase (about 150 lines) which I couldn't reduce any further. To
me this looks like some fishy memory access.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC host triplet| |i686-pc-linux-gnu
GCC target triplet| |i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-02-09 22:58 ` reichelt at gcc dot gnu dot org
@ 2009-02-10 0:09 ` paolo dot carlini at oracle dot com
2009-02-12 23:22 ` bangerth at gmail dot com
` (5 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-10 0:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2009-02-10 00:08 -------
Ah, ok, it's i686...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-02-10 0:09 ` paolo dot carlini at oracle dot com
@ 2009-02-12 23:22 ` bangerth at gmail dot com
2009-02-14 23:38 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: bangerth at gmail dot com @ 2009-02-12 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from bangerth at gmail dot com 2009-02-12 23:21 -------
Confirmed.
--
bangerth at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-12 23:21:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-02-12 23:22 ` bangerth at gmail dot com
@ 2009-02-14 23:38 ` hjl dot tools at gmail dot com
2009-02-23 2:36 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-14 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2009-02-14 23:38 -------
This latent bug is triggered by the part of revision 143157:
---
Index: i386.c
===================================================================
--- i386.c (revision 143154)
+++ i386.c (working copy)
@@ -22183,6 +22183,11 @@ ix86_init_mmx_sse_builtins (void)
V8SI_type_node, V4SI_type_node,
integer_type_node,
NULL_TREE);
+ tree pv4di_type_node = build_pointer_type (V4DI_type_node);
+ tree void_ftype_pv4di_v4di
+ = build_function_type_list (void_type_node,
+ pv4di_type_node, V4DI_type_node,
+ NULL_TREE);
tree v8sf_ftype_v8sf_v4sf_int
= build_function_type_list (V8SF_type_node,
V8SF_type_node, V4SF_type_node,
---
This patch:
Index: cp/decl.c
===================================================================
--- cp/decl.c (revision 143157)
+++ cp/decl.c (working copy)
@@ -1549,6 +1549,7 @@ duplicate_decls (tree newdecl, tree oldd
error ("after previous specification in %q+#D",
olddecl);
}
+ return error_mark_node;
}
}
}
works for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-02-14 23:38 ` hjl dot tools at gmail dot com
@ 2009-02-23 2:36 ` hjl dot tools at gmail dot com
2009-03-07 19:44 ` hjl dot tools at gmail dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-23 2:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl dot tools at gmail dot com 2009-02-23 02:36 -------
Created an attachment (id=17346)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17346&action=view)
A patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-02-23 2:36 ` hjl dot tools at gmail dot com
@ 2009-03-07 19:44 ` hjl dot tools at gmail dot com
2009-03-08 17:29 ` hjl at gcc dot gnu dot org
2009-03-08 17:34 ` hjl dot tools at gmail dot com
10 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-07 19:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl dot tools at gmail dot com 2009-03-07 19:44 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00432.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2009-
| |03/msg00432.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-03-07 19:44 ` hjl dot tools at gmail dot com
@ 2009-03-08 17:29 ` hjl at gcc dot gnu dot org
2009-03-08 17:34 ` hjl dot tools at gmail dot com
10 siblings, 0 replies; 13+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-03-08 17:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hjl at gcc dot gnu dot org 2009-03-08 17:29 -------
Subject: Bug 39060
Author: hjl
Date: Sun Mar 8 17:29:12 2009
New Revision: 144710
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144710
Log:
gcc/cp/
2009-03-08 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39060
* parser.c (cp_parser_late_parsing_default_args): Continue
the loop when cp_parser_assignment_expression returns
error_mark_node.
gcc/testsuite/
2009-03-08 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39060
* g++.dg/other/new1.C: Adjusted.
* g++.dg/parse/crash40.C: Likewise.
* g++.dg/parse/defarg12.C: Likewise.
* g++.dg/template/error15.C: Likewise.
* g++.dg/other/pr39060.C: New.
Added:
trunk/gcc/testsuite/g++.dg/other/pr39060.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/new1.C
trunk/gcc/testsuite/g++.dg/parse/crash40.C
trunk/gcc/testsuite/g++.dg/parse/defarg12.C
trunk/gcc/testsuite/g++.dg/template/error15.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions
2009-02-01 11:24 [Bug c++/39060] New: [4.4 regression] ICE with lots of invalid member functions reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-03-08 17:29 ` hjl at gcc dot gnu dot org
@ 2009-03-08 17:34 ` hjl dot tools at gmail dot com
10 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-08 17:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hjl dot tools at gmail dot com 2009-03-08 17:34 -------
Fixed.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39060
^ permalink raw reply [flat|nested] 13+ messages in thread