aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-11-17 16:28:30 +0000
committerIain Sandoe <iain@sandoe.co.uk>2020-11-17 16:54:33 +0000
commitc2cf58f0e3a32b803c890ea8daa8d9f550cf9888 (patch)
treeacee423a0a0bcc46581373a402da1274cb9e8561 /gcc/tree.c
parent1ffd8e34d182c2c206d8d1543b72e489d6f4b385 (diff)
downloadgcc-c2cf58f0e3a32b803c890ea8daa8d9f550cf9888.zip
gcc-c2cf58f0e3a32b803c890ea8daa8d9f550cf9888.tar.gz
gcc-c2cf58f0e3a32b803c890ea8daa8d9f550cf9888.tar.bz2
C++ : Remove an overzealous checking assert [PR97871]
It seems we accept __attribute__(()) without any diagnostic at present, so my added checking assert fires for something like: __attribute__ (()) int a; Fixed by removing the assert; in the case that the user enters something like: __attribute__ (()) extern "C" int foo; The diagnostic about attributes before linkage specs will fire and show the empty attributes. gcc/cp/ChangeLog: PR c++/97871 * parser.c (cp_parser_declaration): Remove checking assert.
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions