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


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

--- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-12-14 08:46:27 UTC ---
Author: dodji
Date: Wed Dec 14 08:46:13 2011
New Revision: 182324

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182324
Log:
PR c++/51476 - ICE on PTRMEM_CST as template argument in c++11

gcc/cp/

    PR c++/51476
    * pt.c (convert_nontype_argument): Don't call maybe_constant_value
    for PTRMEM_CST nodes.

gcc/testsuite/

    PR c++/51476
    * g++.dg/cpp0x/ptrmem-cst-arg1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/ptrmem-cst-arg1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.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]