Commit e62dc1f
committed
[MS] Fix assert handling enum forward decls in hasVisibleDefinition
An enum may be considered to be a complete type if it was forward
declared. It may be declared with a fixed underlying type, or, in MSVC
compatiblity mode, with no type at all.
Previously, the code was written with special handling for fixed enums.
I generalized the code to check if the underlying integer type is known,
which should be the case when targetting the MSVC C++ ABI.
Fixes PR454091 parent 98f7782 commit e62dc1f
File tree
5 files changed
+20
-4
lines changed- clang
- lib/Sema
- test/Modules
- Inputs/ms-enums
5 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8060 | 8060 | | |
8061 | 8061 | | |
8062 | 8062 | | |
8063 | | - | |
8064 | | - | |
8065 | | - | |
8066 | | - | |
| 8063 | + | |
| 8064 | + | |
| 8065 | + | |
| 8066 | + | |
8067 | 8067 | | |
8068 | 8068 | | |
8069 | 8069 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments