public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138
@ 2005-07-31 15:52 mki at maconomy dot dk
2005-07-31 16:26 ` [Bug c++/23162] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: mki at maconomy dot dk @ 2005-07-31 15:52 UTC (permalink / raw)
To: gcc-bugs
Compiling a 1.5 Mb ii gave an ICE. It has been reduced as much as I could,
giving the following case:
-bash-3.00$ cat d.cpp
namespace std
{
template<typename _Tp1>
struct auto_ptr_ref { };
template<typename _Tp>
class auto_ptr
{
public:
auto_ptr(auto_ptr& __a) {}
auto_ptr(auto_ptr_ref<_Tp> __ref) {}
auto_ptr& operator=(auto_ptr_ref<_Tp> __ref) {}
template<typename _Tp1>
operator auto_ptr_ref<_Tp1>() {}
template<typename _Tp1>
operator auto_ptr<_Tp1>() {}
};
}
class C
{
virtual std::auto_ptr<int> foo() const;
};
class D : virtual C
{
~D();
virtual std::auto_ptr<int> foo() const { }
};
D::~D() {}
-bash-3.00$ /usr/local/gcc-3.4.4/bin/g++ -v --save-temp d.cpp
Reading specs from /usr/local/gcc-3.4.4/lib/gcc/hppa2.0w-hp-hpux11.11/3.4.4/specs
Configured with: /data/develop/src/gcc-3.4.4/configure --enable-languages=c,c++
--with-gnu-as --without-gnu-ld --with-as=/usr/local/binutils-2.16/bin/as
--prefix=/usr/local/gcc-3.4.4
Thread model: single
gcc version 3.4.4
/usr/local/gcc-3.4.4/libexec/gcc/hppa2.0w-hp-hpux11.11/3.4.4/cc1plus -E -quiet
-v d.cpp -o d.ii
ignoring nonexistent directory "/usr/local/gcc-3.4.4/hppa2.0w-hp-hpux11.11/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/gcc-3.4.4/include/c++/3.4.4
/usr/local/gcc-3.4.4/include/c++/3.4.4/hppa2.0w-hp-hpux11.11
/usr/local/gcc-3.4.4/include/c++/3.4.4/backward
/usr/local/include
/usr/local/gcc-3.4.4/include
/usr/local/gcc-3.4.4/lib/gcc/hppa2.0w-hp-hpux11.11/3.4.4/include
/usr/include
End of search list.
/usr/local/gcc-3.4.4/libexec/gcc/hppa2.0w-hp-hpux11.11/3.4.4/cc1plus
-fpreprocessed d.ii -quiet -dumpbase d.cpp -auxbase d -version -o d.s
GNU C++ version 3.4.4 (hppa2.0w-hp-hpux11.11)
compiled by GNU C version 3.4.4.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=130816
d.cpp: In member function `std::auto_ptr<int> D::_ZTv0_n12_NK1D3fooEv() const':
d.cpp:30: internal compiler error: in c_expand_expr, at c-common.c:4138
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
-bash-3.00$
Same ICE with 3.4.3. 3.3.6 as well as 4.0.1 complains (probably correctly) that
the reduced code isn't valid.
Upgrading to 4.0.1 isn't possible at the moment bco other ICEs, so I hope to
find a 3.x.x solution...
--
Summary: internal compiler error: in c_expand_expr, at c-
common.c:4138
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mki at maconomy dot dk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: hppa2.0w-hp-hpux11.11
GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] internal compiler error: in c_expand_expr, at c-common.c:4138
2005-07-31 15:52 [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138 mki at maconomy dot dk
@ 2005-07-31 16:26 ` pinskia at gcc dot gnu dot org
2005-07-31 17:34 ` [Bug c++/23162] [3.4 only] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31 16:26 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|hppa2.0w-hp-hpux11.11 |
GCC host triplet|hppa2.0w-hp-hpux11.11 |
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] [3.4 only] internal compiler error: in c_expand_expr, at c-common.c:4138
2005-07-31 15:52 [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138 mki at maconomy dot dk
2005-07-31 16:26 ` [Bug c++/23162] " pinskia at gcc dot gnu dot org
@ 2005-07-31 17:34 ` pinskia at gcc dot gnu dot org
2005-07-31 17:40 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31 17:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-31 17:32 -------
Confirmed, this is really fixed on 4.0.0 and above.
I don't know if this is going to be fixed on the 3.4 branch as it was fixed for 4.0 by the merge of the
tree-ssa which is too big to merge into the 3.4 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.5
Known to work| |4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2005-07-31 17:32:30
date| |
Summary|internal compiler error: in |[3.4 only] internal compiler
|c_expand_expr, at c- |error: in c_expand_expr, at
|common.c:4138 |c-common.c:4138
Target Milestone|--- |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] [3.4 only] internal compiler error: in c_expand_expr, at c-common.c:4138
2005-07-31 15:52 [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138 mki at maconomy dot dk
2005-07-31 16:26 ` [Bug c++/23162] " pinskia at gcc dot gnu dot org
2005-07-31 17:34 ` [Bug c++/23162] [3.4 only] " pinskia at gcc dot gnu dot org
@ 2005-07-31 17:40 ` pinskia at gcc dot gnu dot org
2005-08-01 13:45 ` mki at maconomy dot dk
2005-08-02 1:51 ` danglin at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31 17:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-31 17:35 -------
We have an aggr_init_expr here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] [3.4 only] internal compiler error: in c_expand_expr, at c-common.c:4138
2005-07-31 15:52 [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138 mki at maconomy dot dk
` (2 preceding siblings ...)
2005-07-31 17:40 ` pinskia at gcc dot gnu dot org
@ 2005-08-01 13:45 ` mki at maconomy dot dk
2005-08-02 1:51 ` danglin at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: mki at maconomy dot dk @ 2005-08-01 13:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mki at maconomy dot dk 2005-08-01 13:45 -------
Forgot to mention:
The ICE seems to be platform specific. My testcase works on linux with 3.3.4,
3.4.3 and 4.0.1.
It thus (to me) seems slightly related to PR c++/21123... (But
--disable-checking makes no difference.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] [3.4 only] internal compiler error: in c_expand_expr, at c-common.c:4138
2005-07-31 15:52 [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138 mki at maconomy dot dk
` (3 preceding siblings ...)
2005-08-01 13:45 ` mki at maconomy dot dk
@ 2005-08-02 1:51 ` danglin at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-08-02 1:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2005-08-02 01:51 -------
The testcase fails on all 3.4 releases on hppa-unknown-linux-gnu (i.e.,
the failure isn't specific to hpux).
--disable-checking has no effect in this case as the ICE is generated
by calling abort.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] [3.4 only] internal compiler error: in c_expand_expr, at c-common.c:4138
[not found] <bug-23162-4030@http.gcc.gnu.org/bugzilla/>
2005-11-21 2:34 ` gdr at gcc dot gnu dot org
@ 2006-03-01 3:59 ` gdr at gcc dot gnu dot org
1 sibling, 0 replies; 8+ messages in thread
From: gdr at gcc dot gnu dot org @ 2006-03-01 3:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gdr at gcc dot gnu dot org 2006-03-01 03:59 -------
Unlikely to be fixed in 3.4.6
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/23162] [3.4 only] internal compiler error: in c_expand_expr, at c-common.c:4138
[not found] <bug-23162-4030@http.gcc.gnu.org/bugzilla/>
@ 2005-11-21 2:34 ` gdr at gcc dot gnu dot org
2006-03-01 3:59 ` gdr at gcc dot gnu dot org
1 sibling, 0 replies; 8+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-11-21 2:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from gdr at gcc dot gnu dot org 2005-11-21 02:34 -------
Postponed until GCC 3.4.6
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
Target Milestone|3.4.5 |3.4.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23162
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-03-01 3:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-31 15:52 [Bug c++/23162] New: internal compiler error: in c_expand_expr, at c-common.c:4138 mki at maconomy dot dk
2005-07-31 16:26 ` [Bug c++/23162] " pinskia at gcc dot gnu dot org
2005-07-31 17:34 ` [Bug c++/23162] [3.4 only] " pinskia at gcc dot gnu dot org
2005-07-31 17:40 ` pinskia at gcc dot gnu dot org
2005-08-01 13:45 ` mki at maconomy dot dk
2005-08-02 1:51 ` danglin at gcc dot gnu dot org
[not found] <bug-23162-4030@http.gcc.gnu.org/bugzilla/>
2005-11-21 2:34 ` gdr at gcc dot gnu dot org
2006-03-01 3:59 ` gdr 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).