diff options
author | Jason Merrill <jason@redhat.com> | 2020-04-06 18:19:07 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-04-07 00:11:44 -0400 |
commit | 467fc7c83abfe8fca8b75defac7c89f6c75bf9d7 (patch) | |
tree | dc9e116e3c0a14ab2658ef20cbbb2d7643a7c7ff /gcc/c/c-parser.c | |
parent | 93a49d2d2292893b9b7f38132df949c70942838c (diff) | |
download | gcc-467fc7c83abfe8fca8b75defac7c89f6c75bf9d7.zip gcc-467fc7c83abfe8fca8b75defac7c89f6c75bf9d7.tar.gz gcc-467fc7c83abfe8fca8b75defac7c89f6c75bf9d7.tar.bz2 |
c++: Fix ICE with implicit operator== [PR94462]
duplicate_decls assumed that any TREE_ARTIFICIAL function at namespace scope
was a built-in function, but now in C++20 it's possible to have an
implicitly declared hidden friend operator==. We just need to move the
assert into the if condition.
gcc/cp/ChangeLog
2020-04-06 Jason Merrill <jason@redhat.com>
PR c++/94462
* decl.c (duplicate_decls): Fix handling of DECL_HIDDEN_FRIEND_P.
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions