Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a22c6ba
[Clang] prevent setting default lexical access specifier for missing …
a-tarasyuk Oct 15, 2024
83ce02f
prevent assertion failure by handling invalid enum forward declarations
a-tarasyuk Oct 18, 2024
47633cc
Merge branch 'main' into fix/112208
a-tarasyuk Oct 18, 2024
1c95b7f
Merge branch 'main' into fix/112208
a-tarasyuk Oct 18, 2024
ca046e4
Merge branch 'main' into fix/112208
a-tarasyuk Oct 18, 2024
a17e84b
Merge branch 'main' into fix/112208
a-tarasyuk Oct 18, 2024
59e54ca
Merge branch 'main' of https://github.com/llvm/llvm-project into fix/…
a-tarasyuk Oct 18, 2024
d3aea99
Merge branch 'main' into fix/112208
a-tarasyuk Oct 19, 2024
f1e0357
Merge branch 'main' into fix/112208
a-tarasyuk Oct 19, 2024
e473224
Merge branch 'main' into fix/112208
a-tarasyuk Oct 19, 2024
047dada
Merge branch 'main' into fix/112208
a-tarasyuk Oct 19, 2024
f3b7b64
Merge branch 'main' into fix/112208
a-tarasyuk Oct 19, 2024
3a3439d
Merge branch 'main' into fix/112208
a-tarasyuk Oct 20, 2024
b857a8a
Merge branch 'main' into fix/112208
a-tarasyuk Oct 20, 2024
d879fd1
Merge branch 'main' into fix/112208
a-tarasyuk Oct 22, 2024
d321cd0
Merge branch 'main' into fix/112208
a-tarasyuk Oct 24, 2024
a78331f
Merge branch 'main' into fix/112208
a-tarasyuk Oct 24, 2024
f490f77
Merge branch 'main' into fix/112208
a-tarasyuk Oct 24, 2024
ef27720
Merge branch 'main' into fix/112208
a-tarasyuk Oct 25, 2024
8d50c3f
Merge branch 'main' into fix/112208
a-tarasyuk Oct 29, 2024
82e3dda
remove redundant Name check
a-tarasyuk Oct 30, 2024
1d1d39c
Merge branch 'fix/112208' of https://github.com/a-tarasyuk/llvm-proje…
a-tarasyuk Oct 30, 2024
05e13d9
Merge branch 'main' of https://github.com/llvm/llvm-project into fix/…
a-tarasyuk Oct 30, 2024
5ee7443
Merge branch 'main' into fix/112208
a-tarasyuk Oct 30, 2024
66573ba
Merge branch 'main' into fix/112208
a-tarasyuk Oct 30, 2024
dc3da53
Merge branch 'main' into fix/112208
a-tarasyuk Oct 30, 2024
fe033be
Merge branch 'main' into fix/112208
a-tarasyuk Oct 30, 2024
745896d
Merge branch 'main' into fix/112208
a-tarasyuk Oct 31, 2024
b6044a1
Merge branch 'main' into fix/112208
a-tarasyuk Oct 31, 2024
42a777e
revert missed dot
a-tarasyuk Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ Bug Fixes to C++ Support
certain situations. (#GH47400), (#GH90896)
- Fix erroneous templated array size calculation leading to crashes in generated code. (#GH41441)
- During the lookup for a base class name, non-type names are ignored. (#GH16855)
- Fixed an assertion failure when the default lexical access specifier was set for missing
primary declarations. (#GH112208)

Bug Fixes to AST Handling
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
3 changes: 2 additions & 1 deletion clang/lib/Sema/SemaAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl,
AccessSpecifier LexicalAS) {
if (!PrevMemberDecl) {
// Use the lexical access specifier.
MemberDecl->setAccess(LexicalAS);
if (LexicalAS != AS_none)
MemberDecl->setAccess(LexicalAS);
return false;
}

Expand Down
8 changes: 8 additions & 0 deletions clang/test/SemaCXX/enum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@ struct PR28903 {
})
};
};

namespace GH112208 {
class C {
enum E { e = 0 };
void f(int, enum E;); // expected-error {{ISO C++ forbids forward references to 'enum' types}} \
// expected-error {{unexpected ';' before ')'}}
};
}
Loading