struct V { virtual void f() = 0; }; void execute(V volatile* p) { p->V::~V(); }
*** Bug 19297 has been marked as a duplicate of this bug. ***
Confirmed because this was just a reduction of PR 19297 and I had thought we needed two bugs for that but it was kindly already filed.
: Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455). : Search converges between 2003-06-25-ssa (#14) and 2003-06-26-ssa (#15).
*** Bug 19534 has been marked as a duplicate of this bug. ***
For the log, this is blocking Boost (test: python/bienstman1).
Works for me. What's the problem? $ gcc/xgcc -Bgcc -O2 -c pr19299.C --version xgcc (GCC) 4.0.0 20050117 (experimental) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(In reply to comment #6) > Works for me. What's the problem? Or does it, see below. > $ gcc/xgcc -Bgcc -O2 -c pr19299.C --version > xgcc (GCC) 4.0.0 20050117 (experimental) > .... --version makes the compiler to do nothing except for printing out the version. It still ICEs for me: [zhivago:gcc/objdir/gcc] pinskia% ./xgcc -B. t43.cc t43.cc: In function 'void execute(volatile V*)': t43.cc:7: internal compiler error: in create_tmp_var, at gimplify.c:368 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. GNU C++ version 4.0.0 20050119 (experimental) (powerpc-apple-darwin7.7.0)
Subject: Re: [4.0 Regression] ICE with volatile non-PODs pointers pinskia at gcc dot gnu dot org wrote: >>$ gcc/xgcc -Bgcc -O2 -c pr19299.C --version >>xgcc (GCC) 4.0.0 20050117 (experimental) >>.... > > > --version makes the compiler to do nothing except for printing out the version. > I know. I collapsed both outputs for brevity. Never mind. I was using a --disabled-checking binary. Diego.
Fixed on mainline (probably by one of your recent patches, Mark). Do you want this as a testcase?
Yes, a test case for this would be good. Thanks!
Subject: Bug 19299 CVSROOT: /cvs/gcc Module name: gcc Changes by: reichelt@gcc.gnu.org 2005-02-19 20:36:57 Modified files: gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/inherit: volatile1.C gcc/testsuite/g++.dg/template: dtor4.C Log message: PR c++/19299 * g++.dg/inherit/volatile1.C: New test. PR c++/19440 * g++.dg/template/dtor4.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5057&r2=1.5058 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/volatile1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/dtor4.C.diff?cvsroot=gcc&r1=NONE&r2=1.1