re PR preprocessor/83602 (ICE in cpp_macro_definition_location(cpp_hashnode*) on...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jan 2018 12:17:05 +0000 (13:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jan 2018 12:17:05 +0000 (13:17 +0100)
commite30947eb0b94078f5d87c84fe111434ef5e1191e
tree902a7a067fc49be88b79496925e1a925c3ce4150
parent19c37faad10950f693872a4be018cfd9bc81804a
re PR preprocessor/83602 (ICE in cpp_macro_definition_location(cpp_hashnode*) on invalid code)

PR preprocessor/83602
* name-lookup.c (lookup_name_fuzzy): Don't use macro_use_before_def
for builtin macros.

* g++.dg/cpp/pr83602.C: New test.

From-SVN: r256175
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/pr83602.C [new file with mode: 0644]