Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Non-standard code managed to crash the parser #50904

Open Quuxplusone opened 3 years ago

Quuxplusone commented 3 years ago
Bugzilla Link PR51937
Status NEW
Importance P enhancement
Reported by Roman Sandu (roma.sandu@gmail.com)
Reported on 2021-09-22 05:35:01 -0700
Last modified on 2021-09-22 05:37:26 -0700
Version 12.0
Hardware PC Linux
CC blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments file_51937.txt (9128 bytes, text/plain)
file_51937.txt (100397 bytes, text/plain)
file_51937.txt (2234 bytes, text/plain)
Blocks
Blocked by
See also

Clang allows for nested template specialization, which is strictly speaking non-standard, but when the main specialization has constrained arguments, the parser dies with a segfault. Logs and stuff are attached.

Quuxplusone commented 3 years ago

Attached file_51937.txt (9128 bytes, text/plain): clang++ stderr

Quuxplusone commented 3 years ago

Attached file_51937.txt (100397 bytes, text/plain): preprocessed sources

Quuxplusone commented 3 years ago

Attached file_51937.txt (2234 bytes, text/plain): associated run script