Bug 12064 - [3.4 regression] ICE with -O3 in expand_or_defer_fn at cp/semantics.c:2921
Summary: [3.4 regression] ICE with -O3 in expand_or_defer_fn at cp/semantics.c:2921
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P2 critical
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2003-08-26 11:43 UTC by Christian Ehrhardt
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target: sparc-sun-solaris2.9
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ehrhardt 2003-08-26 11:43:02 UTC
The following piece of code ICEs 3.4 (20030729). This is a regression
on the 3.4 branch because 20030620 compiled the code just fine.
Compile with -O3.

----------------------- cut ---------------------------
template < class > struct ConstVector
{
	virtual ~ ConstVector () ;
} ;

template < class D > struct Vector : virtual ConstVector < D >
{
} ;

template < typename , typename > struct X ;

Vector < X < double , long > > DoubleVector ;
----------------------- cut ---------------------------

I'll no retest with a more recent version of 3.4.

   regards  Christian
Comment 1 Andrew Pinski 2003-08-26 12:37:24 UTC
I think this was fixed already for 20030801 (two days later), Phil's regression says this.
I also I cannot reproduce on the mainline (20030825), so closing as fixed.