This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-20000410: internal compiler error involving "typeof" extension
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-20000410: internal compiler error involving "typeof" extension
- From: Corey Kosak <kosak at cs dot cmu dot edu>
- Date: Sat, 22 Apr 2000 21:51:01 -0400
$ 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.