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]

gcc-20000410: internal compiler error involving "typeof" extension


$ cat test.cc && g++ -v && g++ test.cc && a.out
struct moo {
  typedef double xxx_t;
};

struct cow {
  moo m;
};

template<class T>
void func(T &obj)
{
  typedef typeof(obj.m) m_t;
  typename m_t::xxx_t p;
}


int main()
{
  cow c;
  func(c);
}
Reading specs from /usr/local/libexec/gcc-latest-snapshot/bin/../lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000410 (experimental)
test.cc: In function `void func (T &)':
test.cc:13: Internal compiler error 97.
test.cc:13: Please submit a full bug report.
test.cc:13: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
test.cc:13: instructions.

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