This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: internal compiler error with typedef in templates
- To: Martin Berger <martinb at dcs dot qmw dot ac dot uk>
- Subject: Re: internal compiler error with typedef in templates
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 22 Feb 2001 21:11:05 +0100
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <3A9563BB.89E56DA0@dcs.qmw.ac.uk>
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