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++/37766] [C++0x] ICE with function's default reference template parameter



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


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