| Issue |
60639
|
| Summary |
Clang crash: unexpected context for redeclaration
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
aeubanks
|
```
$ cat a.cc
namespace {
extern "C" {
void a();
class {
friend void ::a()
};
}
}
$ clang -fsyntax-only a.cc
clang++: ../../clang/lib/Sema/SemaDecl.cpp:3589: void adjustDeclContextForDeclaratorDecl(DeclaratorDecl *, DeclaratorDecl *): Assertion `(NamedDC->InEnclosingNamespaceSetOf(SemaDC) || NewD->isInv
alidDecl() || OldD->isInvalidDecl()) && "unexpected context for redeclaration"' failed.
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs