re PR c++/44627 (ICE in dump_expr, at cp/error.c:1735)
authorJakub Jelinek <jakub@redhat.com>
Tue, 22 Jun 2010 20:42:50 +0000 (22:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 22 Jun 2010 20:42:50 +0000 (22:42 +0200)
commitdd6f4f897e18adc7b60a3efe5e78c034e747cc22
treeb21ba3828833cd048b1dd8fe8c5956a49968ccc6
parentf878882bef04726c04e11d0d91b5c8afa97d9daf
re PR c++/44627 (ICE in dump_expr, at cp/error.c:1735)

PR c++/44627
* error.c (dump_expr): Don't look at CALL_EXPR_ARG (t, 0) if
the CALL_EXPR has no arguments.

* g++.dg/diagnostic/method1.C: New test.

From-SVN: r161227
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/method1.C [new file with mode: 0644]