Open mizvekov opened 6 months ago
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Matheus Izvekov (mizvekov)
@llvm/issue-subscribers-clang-frontend
Author: Matheus Izvekov (mizvekov)
Can I take this issue if its available? thanks.
Yeah go ahead.
@mizvekov M Hi, thanks for much, can you assign the issue to me? Also, this is my first time contributing to clang:frontend, can you give me some instructions what file/function I should modify?
@mizvekov M
Hi, thanks for much, can you assign the issue to me?
I believe you should be able to just assign yourself, what happens if you click that on the right?
Also, this is my first time contributing to clang:frontend, can you give me some instructions what file/function I should modify?
I think your first order of business should be to locate where the first diagnostic is produced. You should be able to grep the english text, find the tablegen entry for it in a .td file, and then grep for it's identifier in the source code.
Hi Team, is this issue still open for contribution.. I would like to work on this. I don't have control to assign the issue myself.. so can someone assign this to me if it is open for contribution.
Thanks Rajkumar Ananthu.
Hi Team, is this issue still open for contribution.. I would like to work on this. I don't have control to assign the issue myself.. so can someone assign this to me if it is open for contribution.
Thanks Rajkumar Ananthu.
Done
Hi, @rajkumarananthu, Are you still working on this issue? I found it has being opening for more than one month. If not, I'd like to working on this issue.
When classes are defined inside template aliases, they are currently recovered as non templated classes, as if they were defined in the template alias' context. However, these classes let escape any references to the template parameters.
Consider this example:
Produces:
This can easily lead to crashes as well:
asserts in the constexpr evaluator:
Probably a good strategy to fix this issue is to mark the alias' template parameters as invalid, and make sure their resulting type is something sensible for error recovery.