This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56895] [4.8/4.9 Regression] ICE: unexpected expression of kind arrow_expr
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Apr 2013 09:14:41 +0000
- Subject: [Bug c++/56895] [4.8/4.9 Regression] ICE: unexpected expression of kind arrow_expr
- Auto-submitted: auto-generated
- References: <bug-56895-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56895
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 09:14:41 UTC ---
Author: jakub
Date: Thu Apr 11 19:42:33 2013
New Revision: 197824
URL: http://gcc.gnu.org/viewcvs?rev=197824&root=gcc&view=rev
Log:
PR c++/56895
* call.c (null_ptr_cst_p): Call fold_non_dependent_expr_sfinae before
calling maybe_constant_value for C++98.
* g++.dg/template/arrow4.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/arrow4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
Author: jakub
Date: Thu Apr 11 19:43:58 2013
New Revision: 197825
URL: http://gcc.gnu.org/viewcvs?rev=197825&root=gcc&view=rev
Log:
PR c++/56895
* call.c (null_ptr_cst_p): Call fold_non_dependent_expr_sfinae before
calling maybe_constant_value for C++98.
* g++.dg/template/arrow4.C: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/template/arrow4.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/call.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog