[Bug c++/19004] [3.4/4.0 regression] ICE in uses_template_parms at cp/pt.c:4860

lerdsuwa at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 16 14:55:00 GMT 2004


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-12-16 14:55 -------
This should be ice-on-invalid-code.  The code:

    bar<evil>()();

must be replaced with:

    bar<&Dummy::evil>()();

because 'evil' alone is not a valid pointer-to-member function.
GCC compiles file with the corrected code.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code


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



More information about the Gcc-bugs mailing list