[Bug c++/37766] [C++0x] ICE with function's default reference template parameter

jason at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 12 21:04:00 GMT 2009



------- Comment #6 from jason at gcc dot gnu dot org  2009-10-12 21:04 -------
Subject: Bug 37766

Author: jason
Date: Mon Oct 12 21:04:27 2009
New Revision: 152685

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152685
Log:
        PR c++/37766
        * pt.c (type_unification_real): Call convert_template_argument
        for function default template arguments.
        (check_default_tmpl_args): Suggest -std=c++0x when function default
        template args seen in C++98 mode.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/fntmpdefarg1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list