public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault
@ 2010-05-08 14:32 doko at ubuntu dot com
2010-05-08 14:33 ` [Bug c++/44040] " doko at ubuntu dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: doko at ubuntu dot com @ 2010-05-08 14:32 UTC (permalink / raw)
To: gcc-bugs
seen with 4.5 20100508:
g++ -c Abs.ii
In file included from
/scratch/packages/tmp/m/freemat-4.0/libs/libCore/Abs.cpp:20:0:
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp: In function
'Array DotOp(const Array&, const Array&, DataC
lass)':
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:158:49:
error: cannot call constructor 'Array::Array' direc
tly
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:158:49:
error: for a function-style cast, remove the redu
ndant '::Array'
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:166:49:
error: cannot call constructor 'Array::Array' direc
tly
/scratch/packages/tmp/m/freemat-4.0/libs/libFreeMat/Operators.hpp:166:49:
error: for a function-style cast, remove the redu
ndant '::Array'
[...]
Program received signal SIGSEGV, Segmentation fault.
tsubst_baselink (baselink=0x0, object_type=0x0, args=0x7ffff2d01030,
complain=3, in_decl=0x7ffff3051730)
at ../../src/gcc/cp/pt.c:10682
10682 if (BASELINK_P (baselink))
(gdb) bt
#0 tsubst_baselink (baselink=0x0, object_type=0x0, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730) at ../../src/gcc/cp/pt.c:10682
#1 0x0000000000729879 in tsubst_copy_and_build (t=0x7ffff30583c0,
args=0x7ffff2d01030, complain=3,
in_decl=0x7ffff3051730, function_p=1 '\001',
integral_constant_expression_p=0 '\000')
at ../../src/gcc/cp/pt.c:12853
#2 0x0000000000728148 in tsubst_copy_and_build (t=0x7ffff3247af8,
args=0x7ffff2d01030, complain=3,
in_decl=0x7ffff3051730, function_p=0 '\000',
integral_constant_expression_p=0 '\000')
at ../../src/gcc/cp/pt.c:12354
#3 0x0000000000728d38 in tsubst_copy_and_build (t=0x7ffff3057900,
args=0x7ffff2d01030, complain=3,
in_decl=0x7ffff3051730, function_p=<value optimized out>,
integral_constant_expression_p=0 '\000')
at ../../src/gcc/cp/pt.c:12234
#4 0x000000000070e7bf in tsubst_expr (t=0x7ffff3057900, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11938
#5 0x000000000070f2ec in tsubst_expr (t=0x7ffff3058450, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11537
#6 0x000000000070f1ae in tsubst_expr (t=0x7ffff3057800, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11679
#7 0x000000000070f40a in tsubst_expr (t=0x7ffff30576c0, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11659
#8 0x000000000070f1ae in tsubst_expr (t=0x7ffff3057680, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11679
#9 0x000000000070f40a in tsubst_expr (t=0x7ffff3057540, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11659
#10 0x000000000070e844 in tsubst_expr (t=<value optimized out>,
args=0x7ffff2d01030, complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11523
#11 0x000000000070f1ae in tsubst_expr (t=0x7ffff3050980, args=0x7ffff2d01030,
complain=3,
in_decl=0x7ffff3051730, integral_constant_expression_p=0 '\000') at
../../src/gcc/cp/pt.c:11679
#12 0x0000000000720bed in instantiate_decl (d=<value optimized out>,
defer_ok=1,
expl_inst_class_mem_p=0 '\000') at ../../src/gcc/cp/pt.c:16862
#13 0x000000000074817c in instantiate_pending_templates (retries=<value
optimized out>)
at ../../src/gcc/cp/pt.c:16959
#14 0x0000000000777438 in cp_write_global_declarations () at
../../src/gcc/cp/decl2.c:3546
#15 0x0000000000a5e1a4 in compile_file (argc=13, argv=0x7fffffffe608) at
../../src/gcc/toplev.c:1065
#16 do_compile (argc=13, argv=0x7fffffffe608) at ../../src/gcc/toplev.c:2417
#17 toplev_main (argc=13, argv=0x7fffffffe608) at ../../src/gcc/toplev.c:2459
#18 0x00007ffff6179abd in __libc_start_main () from /lib/libc.so.6
#19 0x00000000006a830d in _start ()
--
Summary: [4.5 regression] ICE: cc1plus segmentation fault
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5 regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
@ 2010-05-08 14:33 ` doko at ubuntu dot com
2010-05-08 16:40 ` [Bug c++/44040] [4.5 Regression] " rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: doko at ubuntu dot com @ 2010-05-08 14:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from doko at ubuntu dot com 2010-05-08 14:33 -------
Created an attachment (id=20603)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20603&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5 Regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
2010-05-08 14:33 ` [Bug c++/44040] " doko at ubuntu dot com
@ 2010-05-08 16:40 ` rguenth at gcc dot gnu dot org
2010-05-19 12:58 ` [Bug c++/44040] [4.5/4.6 " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-08 16:40 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.5 regression] ICE: |[4.5 Regression] ICE:
|cc1plus segmentation fault |cc1plus segmentation fault
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5/4.6 Regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
2010-05-08 14:33 ` [Bug c++/44040] " doko at ubuntu dot com
2010-05-08 16:40 ` [Bug c++/44040] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-05-19 12:58 ` rguenth at gcc dot gnu dot org
2010-06-27 8:27 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-19 12:57 -------
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Priority|P3 |P5
Last reconfirmed|0000-00-00 00:00:00 |2010-05-19 12:57:55
date| |
Summary|[4.5 Regression] ICE: |[4.5/4.6 Regression] ICE:
|cc1plus segmentation fault |cc1plus segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5/4.6 Regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
` (2 preceding siblings ...)
2010-05-19 12:58 ` [Bug c++/44040] [4.5/4.6 " rguenth at gcc dot gnu dot org
@ 2010-06-27 8:27 ` rguenth at gcc dot gnu dot org
2010-06-28 0:54 ` hjl dot tools at gmail dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-27 8:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-27 08:27 -------
Reduced testcase:
class Array {
template <typename T, class Op>
static inline Array UnaryOp(const Array &Ain) {
return Array::Array();
}
template <class Op> static inline Array UnaryOp(const Array &Ain) {
return UnaryOp<float,Op>(Ain);
}
struct OpAbs {
Array AbsFunction(int nargout, const Array& arg) {
return UnaryOp<OpAbs>(arg);
}
};
};
does not exhibit the repeated error though. Same backtrace with less
tsubst_expr calls though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5/4.6 Regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
` (3 preceding siblings ...)
2010-06-27 8:27 ` rguenth at gcc dot gnu dot org
@ 2010-06-28 0:54 ` hjl dot tools at gmail dot com
2010-06-28 16:00 ` paolo dot carlini at oracle dot com
2010-06-30 18:28 ` jason at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-06-28 0:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hjl dot tools at gmail dot com 2010-06-28 00:53 -------
(In reply to comment #3)
> Reduced testcase:
>
> class Array {
> template <typename T, class Op>
> static inline Array UnaryOp(const Array &Ain) {
> return Array::Array();
> }
> template <class Op> static inline Array UnaryOp(const Array &Ain) {
> return UnaryOp<float,Op>(Ain);
> }
> struct OpAbs {
> Array AbsFunction(int nargout, const Array& arg) {
> return UnaryOp<OpAbs>(arg);
> }
> };
> };
>
> does not exhibit the repeated error though. Same backtrace with less
> tsubst_expr calls though.
>
It is caused by revision 154403:
http://gcc.gnu.org/ml/gcc-cvs/2009-11/msg00624.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5/4.6 Regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
` (4 preceding siblings ...)
2010-06-28 0:54 ` hjl dot tools at gmail dot com
@ 2010-06-28 16:00 ` paolo dot carlini at oracle dot com
2010-06-30 18:28 ` jason at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-28 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from paolo dot carlini at oracle dot com 2010-06-28 16:00 -------
It looks like PR44039 is the same issue, my patchlet there fixes this one too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/44040] [4.5/4.6 Regression] ICE: cc1plus segmentation fault
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
` (5 preceding siblings ...)
2010-06-28 16:00 ` paolo dot carlini at oracle dot com
@ 2010-06-30 18:28 ` jason at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-06-30 18:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2010-06-30 18:28 -------
*** This bug has been marked as a duplicate of 44039 ***
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44040
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-06-30 18:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-08 14:32 [Bug c++/44040] New: [4.5 regression] ICE: cc1plus segmentation fault doko at ubuntu dot com
2010-05-08 14:33 ` [Bug c++/44040] " doko at ubuntu dot com
2010-05-08 16:40 ` [Bug c++/44040] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-05-19 12:58 ` [Bug c++/44040] [4.5/4.6 " rguenth at gcc dot gnu dot org
2010-06-27 8:27 ` rguenth at gcc dot gnu dot org
2010-06-28 0:54 ` hjl dot tools at gmail dot com
2010-06-28 16:00 ` paolo dot carlini at oracle dot com
2010-06-30 18:28 ` jason 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).