ICE when compiled -g
Walter E. Brown
wb@fnal.gov
Tue Oct 22 19:40:00 GMT 2002
The following short program gives an internal compiler error with v3.2 when
compiled with -g, but compiles correctly without -g.
// ----------
template< class T >
T fakemake();
template< class T >
struct Identity {
typedef T type;
};
template< class T, class U>
struct Result
: public Identity< typeof( true ? fakemake<T>() : fakemake<U>() )>
{};
int main () {
Result<short,int>::type i = 0;
return i;
}
// ----------
- WEB
--
Walter E. Brown, Ph.D. voice: +1 630 840-2784
Computational Physics Dept. / MS 234
Fermi National Accelerator Laboratory
Batavia, IL 60510-0500
USA
More information about the Gcc-bugs
mailing list