diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-03 08:35:53 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-03 08:49:26 -0800 |
commit | 770ec066b8b5d70921dfab9fcd1bbb87abeb0dc5 (patch) | |
tree | 6a77dd4e5833dca8b806912e1d0a906b9fbd1129 /gcc/inchash.c | |
parent | 082a7b239096caf422f7ef138e2729b2730c0d70 (diff) | |
download | gcc-770ec066b8b5d70921dfab9fcd1bbb87abeb0dc5.zip gcc-770ec066b8b5d70921dfab9fcd1bbb87abeb0dc5.tar.gz gcc-770ec066b8b5d70921dfab9fcd1bbb87abeb0dc5.tar.bz2 |
c++: Make extern-C mismatch an error
duplicate_decls was being lenient about extern-c mismatches, allowing
you to have two declarations in the symbol table after emitting an
error. This resulted in duplicate error messages in modules, when we
find the same problem multiple times. Let's just not let that happen.
gcc/cp/
* decl.c (duplicate_decls): Return error_mark_node fo extern-c
mismatch.
Diffstat (limited to 'gcc/inchash.c')
0 files changed, 0 insertions, 0 deletions