re PR c++/56895 (ICE: unexpected expression of kind arrow_expr)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Apr 2013 19:42:33 +0000 (21:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Apr 2013 19:42:33 +0000 (21:42 +0200)
commit43a8d6ccf2142b8128e659b14842f50cf2fa48b2
tree14bafee9573e5728d39dea1c54d806b4cb2843c2
parenta2a5f18ea792acb01cf1ae24e94d9ad0daf3acca
re PR c++/56895 (ICE: unexpected expression of kind arrow_expr)

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.

From-SVN: r197824
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/arrow4.C [new file with mode: 0644]