re PR c++/79304 (diagnostic shows bogus expression ((X<T>*)this)->.c)
authorJakub Jelinek <jakub@redhat.com>
Tue, 31 Jan 2017 21:38:00 +0000 (22:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 31 Jan 2017 21:38:00 +0000 (22:38 +0100)
commit19bdccb4be4b0c3eae14c5634d25e1a83506a2f0
treefa800345c959c330e1898ca4f11e9502cbe1690c
parentfcb2cdfcfecc800d537fffa13dad17e4a3a34ae2
re PR c++/79304 (diagnostic shows bogus expression ((X<T>*)this)->.c)

PR c++/79304
* error.c (dump_expr) <case COMPONENT_REF>: Don't print .
after ARROW_EXPR.

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

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