Capture source location of dtors (PR c++/89390)
authorDavid Malcolm <dmalcolm@redhat.com>
Sat, 23 Feb 2019 01:19:38 +0000 (01:19 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Sat, 23 Feb 2019 01:19:38 +0000 (01:19 +0000)
commitc1753302087205dd9d5e9013c859623b261df060
treea30ed4bf67b3c1071a65fbddd0096cd95d161cf3
parent986e0e33f6e2349741ca5dafdeb167d215b28195
Capture source location of dtors (PR c++/89390)

gcc/cp/ChangeLog:
PR c++/89390
* parser.c (cp_parser_unqualified_id): Capture and use locations
for destructors.

gcc/testsuite/ChangeLog:
PR c++/89390
* g++.dg/diagnostic/pr89390.C: Update expected location of error,
renaming to a multicharacter name, so that start != finish.  Add
tests for dtor locations.

From-SVN: r269145
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr89390.C