This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/15461] New: [3.4 regression] ICE on valid code
- From: "smelkov at mph1 dot phys dot spbu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2004 13:16:20 -0000
- Subject: [Bug middle-end/15461] New: [3.4 regression] ICE on valid code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
---time.cpp---
struct A {
long tv_sec;
};
class B {
public:
operator A () const;
};
inline B::operator A () const
{
int sec = 1;
A tv = {
tv_sec: sec,
};
return tv;
}
void xxx(const B& t)
{
A tv(t);
}
---end of time.cpp---
with gcc-3.3.3 it is ok.
can't see whether this is related to PR14203 or not.
[kirr@tugrik bug]$ g++340-check -O -Wall -I include -c time.cpp -o time.o
time.cpp: In function `void xxx(const B&)':
time.cpp:11: internal compiler error: in make_decl_rtl, at varasm.c:752
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[kirr@tugrik bug]$ g++340-check -v
Reading specs from
/usr/local/gcc-3.4.0-check/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0-check
--with-gnu-as --with-gnu-ld --enable-threads=posix --with-arch=i686
--with-tune=pentium4 --enable-__cxa_atexit --enable-languages=c,c++,f77
--enable-checking --disable-nls
Thread model: posix
gcc version 3.4.0
--
Summary: [3.4 regression] ICE on valid code
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smelkov at mph1 dot phys dot spbu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15461