This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21681] [4.0/4.1 Regression] Internal Compiler Error


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]