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++/51328] [4.4/4.5/4.6/4.7 Regression] ICE on invalid template parameter


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

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-19 22:40:16 UTC ---
Author: paolo
Date: Mon Dec 19 22:40:11 2011
New Revision: 182508

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182508
Log:
/cp
2011-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51328
    * pt.c (convert_template_argument): Early error out and return
    error_mark_node for invalid uses of destructors as types.

/testsuite
2011-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51328
    * g++.dg/template/crash109.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash109.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]