Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Clang parser crashes on invalid input with typo suggestions on assertion "queried property of class with no definition" #38284

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR39311
Status CONFIRMED
Importance P enhancement
Reported by Orivej Desh (orivej@gmx.fr)
Reported on 2018-10-15 15:23:16 -0700
Last modified on 2021-01-29 23:17:53 -0800
Version trunk
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also PR12777
This invalid input crashes "clang++ -c input.cpp":

     template <T> f() { class ClassA class : ClassB, ClassA

It is necessary for "ClassA" and "ClassB" names to be similar enough to trigger
the typo suggestion and the crash. This affects all versions of Clang, from
3.7 to trunk (r344434).

This bug is different from https://bugs.llvm.org/show_bug.cgi?id=12777 which is
no longer reproducible.
Quuxplusone commented 3 years ago

Confirmed that it still crashes on the current master.