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++/56438] [4.8 regression] ICE in value_dependent_expression_p, at cp/pt.c:19551


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2013-02-26 04:27:49 UTC ---
Author: jason
Date: Tue Feb 26 04:27:40 2013
New Revision: 196274

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196274
Log:
    PR c++/56438
    * semantics.c (potential_constant_expression_1): In C++98, a cast
    to non-integral type can't be a constant expression.

Added:
    trunk/gcc/testsuite/g++.dg/template/cast3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c


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