This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE when compiled -g
- From: "Walter E. Brown" <wb at fnal dot gov>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Oct 2002 19:38:03 -0700
- Subject: ICE when compiled -g
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