aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wstringop-overflow.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2021-03-08 10:37:03 -0800
committerNathan Sidwell <nathan@acm.org>2021-03-08 10:40:09 -0800
commit504450c708ca85fe41a09924630fec945bab913b (patch)
tree780e06cb090a96316b4bad37c848f6dfb52ce1e7 /gcc/testsuite/c-c++-common/Wstringop-overflow.c
parentcb25dea3ef2c7768007bffc56f0e31e1c42b44e2 (diff)
downloadgcc-504450c708ca85fe41a09924630fec945bab913b.zip
gcc-504450c708ca85fe41a09924630fec945bab913b.tar.gz
gcc-504450c708ca85fe41a09924630fec945bab913b.tar.bz2
c++: Poor diagnostic in header-unit [PR 99468]
We didn't specifically check for a module-decl inside a header unit. That leads to a confusing diagostic. Fixed thusly. gcc/cp/ * lex.c (module_token_filter::resume): Ignore module-decls inside header-unit. * parser.c (cp_parser_module_declaration): Reject in header-unit. gcc/testsuite/ * g++.dg/modules/pr99468.H: New.
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wstringop-overflow.c')
0 files changed, 0 insertions, 0 deletions