bloomberg / clang-p2996

Experimental clang support for WG21 P2996 (Reflection).
https://github.com/bloomberg/clang-p2996/tree/p2996/P2996.md
52 stars 8 forks source link

Crash while lexing certain invalid expressions having a left-splice at global scope #17

Closed katzdm closed 5 months ago

katzdm commented 5 months ago

Splicing certain invalid expressions at global scope, e.g.,

[:(3:]
[:(3
[:

all produce a crash. Probably some error with not checking for EOF or ; or something. Gotta review the lexing code.