internal compiler error with typedef in templates
Gabriel Dos Reis
gdr@codesourcery.com
Thu Feb 22 12:10:00 GMT 2001
Martin Berger <martinb@dcs.qmw.ac.uk> writes:
| i reported this problem a few days ago, but i tested it using an old
| compiler. i still get an internal compiler error from the following
| little piece of code under gcc 2.95.2, so here it is again:
|
| template <typename A>
| typeof( *(A*)NULL ) test(){};
Well, I must be missing the relation between the subject (about
typedef) and that construct, but what kind of behaviour are you
expecting from dereferencing a null pointer?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-bugs
mailing list