Fix location of typeid() (PR c++/80014)
commitac4767164369ecb9cab4817174e41cdc9dff404f
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Jun 2017 15:20:55 +0000 (30 15:20 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Jun 2017 15:20:55 +0000 (30 15:20 +0000)
tree6c3e05190bdb092ce15fa48cc6a65a8f933716e5
parent96e380b94aad9eb033d1d5e3bb52c1bb8a193d69
Fix location of typeid() (PR c++/80014)

gcc/cp/ChangeLog:
PR c++/80014
* parser.c (cp_parser_postfix_expression): Construct a location
for typeid expressions.

gcc/testsuite/ChangeLog:
PR c++/80014
* g++.dg/plugin/diagnostic-test-expressions-1.C (std::type_info):
Add declaration.
(test_typeid): New test function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249845 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/plugin/diagnostic-test-expressions-1.C