public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43313] ICE with non-POD and covariant return thunks
[not found] <bug-43313-4@http.gcc.gnu.org/bugzilla/>
@ 2012-11-07 20:11 ` paolo.carlini at oracle dot com
2012-11-07 22:17 ` bergner at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-07 20:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|gcc-bugs at gcc dot gnu.org |
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-07 20:11:27 UTC ---
Is this still an issue?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43313] ICE with non-POD and covariant return thunks
[not found] <bug-43313-4@http.gcc.gnu.org/bugzilla/>
2012-11-07 20:11 ` [Bug c++/43313] ICE with non-POD and covariant return thunks paolo.carlini at oracle dot com
@ 2012-11-07 22:17 ` bergner at gcc dot gnu.org
2012-11-07 23:35 ` bergner at gcc dot gnu.org
2012-11-07 23:41 ` bergner at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2012-11-07 22:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313
--- Comment #6 from Peter Bergner <bergner at gcc dot gnu.org> 2012-11-07 22:16:52 UTC ---
Reconfirmed. It fails with mainline as of today and with the FSF 4.7 branch,
but only with -m32. It compiles fine with -m64.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43313] ICE with non-POD and covariant return thunks
[not found] <bug-43313-4@http.gcc.gnu.org/bugzilla/>
2012-11-07 20:11 ` [Bug c++/43313] ICE with non-POD and covariant return thunks paolo.carlini at oracle dot com
2012-11-07 22:17 ` bergner at gcc dot gnu.org
@ 2012-11-07 23:35 ` bergner at gcc dot gnu.org
2012-11-07 23:41 ` bergner at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2012-11-07 23:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313
--- Comment #7 from Peter Bergner <bergner at gcc dot gnu.org> 2012-11-07 23:33:54 UTC ---
Backtrace:
#0 fancy_abort (file=0x113d6b90
"/home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c", line=7597,
function=0x113d7158 <expand_expr_addr_expr_1(tree_node*, rtx_def*,
machine_mode, expand_modifier, unsigned char)::__FUNCTION__>
"expand_expr_addr_expr_1")
at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/diagnostic.c:1143
#1 0x000000001066f4e0 in expand_expr_addr_expr_1 (exp=0xfffb5cd1700,
target=0x0, tmode=SImode,
modifier=EXPAND_NORMAL, as=0 '\000') at
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:7597
#2 0x000000001066fdd4 in expand_expr_addr_expr (exp=0xfffb5a962e0, target=0x0,
tmode=SImode,
modifier=EXPAND_NORMAL) at
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:7706
#3 0x000000001066b0dc in expand_expr_real_1 (exp=0xfffb5a962e0, target=0x0,
tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:10386
#4 0x000000001066b328 in expand_expr_real (exp=0xfffb5a962e0, target=0x0,
tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:7866
#5 0x00000000104d8084 in expand_normal (exp=0xfffb5a962e0)
at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.h:450
...
(gdb) p DECL_P (exp)
$22 = true
(gdb) p TREE_ADDRESSABLE (exp)
$23 = 1
(gdb) p ! MEM_P (result)
$24 = true
(gdb) p ! targetm.calls.allocate_stack_slots_for_args()
$25 = false
(gdb) ptree exp
<parm_decl 0xfffb5cd1700 PidIndex
type <record_type 0xfffb5c2fb58 CRemapPidIndex type_5 QI
size <integer_cst 0xfffb5a92540 constant 8>
unit size <integer_cst 0xfffb5a92560 constant 1>
align 8 symtab 0 alias set -1 canonical type 0xfffb5c2fb58
fields <type_decl 0xfffb5b94b78 CRemapPidIndex type <record_type
0xfffb5c2fdf8 CRemapPidIndex>
nonlocal decl_4 VOID file foo.ii line 4 col 67
align 1 context <record_type 0xfffb5c2fb58 CRemapPidIndex> result
<record_type 0xfffb5c2fb58 CRemapPidIndex>
> context <translation_unit_decl 0xfffb5b90170 D.1>
full-name "class CRemapPidIndex"
X() X(constX&) this=(X&) n_parents=1 use_template=0 interface-unknown
pointer_to_this <pointer_type 0xfffb5cc4398> chain <type_decl
0xfffb5b94898 CRemapPidIndex>>
addressable used QI file foo.ii line 18 col 53 size <integer_cst
0xfffb5a92540 8> unit size <integer_cst 0xfffb5a92560 1>
align 8 context <function_decl 0xfffb5c7f400
_ZTch0_h4_N8CPlayout14CreateCarouselE14CRemapPidIndex>
(reg/v:QI 125 [ PidIndex ]) arg-type <record_type 0xfffb5c2fb58
CRemapPidIndex>
incoming-rtl (mem:QI (reg:SI 4 4) [0 S1 A8])>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43313] ICE with non-POD and covariant return thunks
[not found] <bug-43313-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2012-11-07 23:35 ` bergner at gcc dot gnu.org
@ 2012-11-07 23:41 ` bergner at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: bergner at gcc dot gnu.org @ 2012-11-07 23:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313
--- Comment #8 from Peter Bergner <bergner at gcc dot gnu.org> 2012-11-07 23:39:56 UTC ---
...and the reduced test case I used for the above. Does any of the above make
sense for anyone?
class CObject {};
class CMsgProc:virtual public CObject { };
template < typename ValueType > class CTypesafeValue { };
class CRemapPidIndex:public CTypesafeValue < short unsigned int > {};
class ICarousel
{
virtual ~ ICarousel ();
};
class IPlayout
{
virtual ICarousel * CreateCarousel (CRemapPidIndex PidIndex) = 0;
};
class CCarousel:public CMsgProc, public ICarousel { };
class CPlayout: public IPlayout
{
CCarousel *CreateCarousel (CRemapPidIndex PidIndex);
};
CCarousel *CPlayout::CreateCarousel (CRemapPidIndex PidIndex) { }
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43313] New: internal compiler error
@ 2010-03-09 21:03 rozachar at cisco dot com
2010-03-10 10:49 ` [Bug c++/43313] ICE with non-POD and covariant return thunks rguenth at gcc dot gnu dot org
0 siblings, 1 reply; 5+ messages in thread
From: rozachar at cisco dot com @ 2010-03-09 21:03 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3026 bytes --]
I am unable to compile this code at -O1 or higher for ppc target. I tested
this on my 4.2.4 cross compiler, Denx 4.2.2 cross compiler, and my 4.4.1 cross
compiler.
[rozachar@torlxemb1 OM_Playout]$ powerpc-burke-linux-g++ -c -O1 -v test.ii
Using built-in specs.
Target: powerpc-burke-linux
Configured with:
/distro/burke/dev/2009.09/oe/build/oetmp/work/i686-ppc440e-sdk-burke-linux/gcc-cross-sdk-4.2.4-r8.2/gcc-4.2.4/configure
--build=i686-linux --host=i686-linux --target=powerpc-burke-linux
--prefix=/usr/local/burke/powerpc --exec_prefix=/usr/local/burke/powerpc
--bindir=/usr/local/burke/powerpc/bin --sbindir=/usr/local/burke/powerpc/bin
--libexecdir=/usr/local/burke/powerpc/libexec
--datadir=/usr/local/burke/powerpc/share
--sysconfdir=/usr/local/burke/powerpc/etc
--sharedstatedir=/usr/local/burke/powerpc/share/com
--localstatedir=/usr/local/burke/powerpc/var
--libdir=/usr/local/burke/powerpc/lib
--includedir=/usr/local/burke/powerpc/include
--oldincludedir=/usr/local/burke/powerpc/include
--infodir=/usr/local/burke/powerpc/share/info
--mandir=/usr/local/burke/powerpc/share/man --with-gnu-ld --enable-shared
--enable-target-optspace --enable-languages=c,c++,objc --enable-threads=posix
--enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu
--enable-libstdcxx-pch --program-prefix=powerpc-burke-linux- --enable-libssp
--disable-bootstrap --enable-libgomp --disable-libmudflap
--with-sysroot=/usr/local/burke/powerpc/powerpc-burke-linux
--with-build-time-tools=/distro/burke/dev/2009.09/oe/build/oetmp/cross/ppc440e/powerpc-burke-linux/bin
--with-build-sysroot=/distro/burke/dev/2009.09/oe/build/oetmp/staging/ppc440e-burke-linux
--disable-libunwind-exceptions --enable-libssp --enable-libgomp
--disable-libmudflap
--with-mpfr=/distro/burke/dev/2009.09/oe/build/oetmp/staging/i686-linux/usr
--enable-__cxa_atexit
Thread model: posix
gcc version 4.2.4
/usr/local/burke/powerpc/libexec/gcc/powerpc-burke-linux/4.2.4/cc1plus
-fpreprocessed test.ii -quiet -dumpbase test.ii -auxbase test -O1 -version -o
/tmp/ccyqwRie.s
GNU C++ version 4.2.4 (powerpc-burke-linux)
compiled by GNU C version 4.3.0 20080428 (Red Hat 4.3.0-8).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 305b4088bdd69deb7ce8a8fa07df1676
test.ii: In member function CCarousel*
CPlayout::_ZTch0_h4_N8CPlayout14CreateCarouselEP14CCarouselOwner14CRemapPidIndex(CCarouselOwner*,
CRemapPidIndex):
test.ii:50: internal compiler error: in expand_expr_addr_expr_1, at expr.c:6577
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions
--
Summary: internal compiler error
Product: gcc
Version: 4.2.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rozachar at cisco dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-07 23:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-43313-4@http.gcc.gnu.org/bugzilla/>
2012-11-07 20:11 ` [Bug c++/43313] ICE with non-POD and covariant return thunks paolo.carlini at oracle dot com
2012-11-07 22:17 ` bergner at gcc dot gnu.org
2012-11-07 23:35 ` bergner at gcc dot gnu.org
2012-11-07 23:41 ` bergner at gcc dot gnu.org
2010-03-09 21:03 [Bug c++/43313] New: internal compiler error rozachar at cisco dot com
2010-03-10 10:49 ` [Bug c++/43313] ICE with non-POD and covariant return thunks rguenth 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).