gcc-20000410: internal compiler error involving "typeof" extension
Corey Kosak
kosak@cs.cmu.edu
Sat Apr 22 18:51:00 GMT 2000
$ 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.
More information about the Gcc-bugs
mailing list