re PR c++/60862 (bad location in invalid conversion error)
authorMarek Polacek <polacek@redhat.com>
Sat, 13 Sep 2014 07:54:40 +0000 (07:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 13 Sep 2014 07:54:40 +0000 (07:54 +0000)
commit05f30b866f8d44acabc08dcd045712afc40445a4
tree17326c712eb505db3635924cd333a33d82c7c86f
parent8909b58efa79468e797edd18139af98c72dd1e64
re PR c++/60862 (bad location in invalid conversion error)

PR c++/60862
* parser.c (cp_parser_postfix_expression) <case CPP_OPEN_PAREN>: Set
location of a call expression.

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

From-SVN: r215235
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr60862.C [new file with mode: 0644]