The following code fails on 3.3.6 and 3.4.5. It does work on 4.0.2 and 4.1.0, so I'm not sure if a fix would be backported to the 3.4 branch.
using namespace std;
virtual int a() = 0;
Confirmed, only a 3.4 regression.
I also get an ICE on the 4.0 branch as of today (and 4.0.0 - 4.0.2):
bug.cc: In function 'int main()':
bug.cc:16: internal compiler error: in create_tmp_var, at gimplify.c:368
Please submit a full bug report, [etc.]
I'm seeing the same 4.0 regression on mainline as well.
(In reply to comment #3)
> I'm seeing the same 4.0 regression on mainline as well.
Are you sure?
I don't see it on "4.2.0 20060103" unless it happens after that.
Mainline is fine. I accidently installed 4.0 over 4.2.
ICE on valid; P1.
*** Bug 26417 has been marked as a duplicate of this bug. ***
*** Bug 27591 has been marked as a duplicate of this bug. ***
fix posted here http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00144.html
Fixed in GCC-4.1.0 ad higher.