[Bug c++/24602] g++: Internal error: Illegal instruction (program cc1plus)

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 23 22:05:00 GMT 2007



------- Comment #8 from reichelt at gcc dot gnu dot org  2007-07-23 22:05 -------
Since Nathan's patch for PR32839, we get the following error message for the
testcase in comment #7 (and similar messages for the original testcase, the
testcase in comment #6, and PR 24606):

bug.cc: In function 'void foo(F) [with F = void (*)(A)]':
bug.cc:16:   instantiated from here
bug.cc:3: error: too few arguments to function

I get the same error message if I make bar a non-template function.
In contrast to my last sentence of comment #7, I now think the compiler
does the right thing here.

Nathan, do you think so, too?
If yes, we can close this bug as fixed.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu dot
                   |                            |org
           Keywords|ice-on-valid-code           |ice-on-invalid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24602



More information about the Gcc-bugs mailing list