This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]