This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80014] [6/7/8 Regression] Caret missing in error message


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80014

--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Jun 30 15:20:55 2017
New Revision: 249845

URL: https://gcc.gnu.org/viewcvs?rev=249845&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/plugin/diagnostic-test-expressions-1.C

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]