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++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter


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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-01-18 20:27:27 UTC ---
Author: paolo
Date: Wed Jan 18 20:27:23 2012
New Revision: 183286

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183286
Log:
/cp
2012-01-18  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51225
    * typeck2.c (store_init_value): Within a template guard
    cxx_constant_value with require_potential_constant_expression.
    * pt.c (convert_nontype_argument): Likewise.

/testsuite
2012-01-18  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51225
    * g++.dg/cpp0x/pr51225.C: New.

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


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