Can happen when getConstructorName is called on invalid decls,
specifically the ones that do not have the injected class name.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Looks fine, but please put the test case somewhere more appropriate (under SemaCXX, for instance).
lib/Sema/SemaExprCXX.cpp | ||
---|---|---|
118 | We would be able to recover in more cases if we only bail out when the InjectedClassName is not found. Maybe instead of this change, you could weaken the assertion to only fail if the class is valid, and return ParsedType here if we don't find an InjectedClassName. |
Comment Actions
- Better recovery for invalid decls that do have an injected class name
- Move the test to SemaCXX
We would be able to recover in more cases if we only bail out when the InjectedClassName is not found. Maybe instead of this change, you could weaken the assertion to only fail if the class is valid, and return ParsedType here if we don't find an InjectedClassName.