This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21681] [4.0/4.1 Regression] Internal Compiler Error
- From: "dave at boost-consulting dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2005 23:12:51 -0000
- Subject: [Bug c++/21681] [4.0/4.1 Regression] Internal Compiler Error
- References: <20050520170626.21681.dave@boost-consulting.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dave at boost-consulting dot com 2005-05-20 23:12 -------
Subject: Re: [4.0/4.1 Regression] Internal Compiler Error
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-20 19:59 -------
> (In reply to comment #5)
>> The code is definitely invalid; I was just wondering how you decided that so
>> quickly ;-)
>
> I looked into the source and found where it crashing. It was obvious from where the crash was it was
> invalid code as there was a function call as a template argument.
That wasn't a function call; it was a function type.
template <class T> struct x {};
x<int(int, int)> legal;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21681