Open theo-lw opened 3 years ago
(also, why are we complaining about the decl line/column on a lexical scope? We don't emit them anyway - perhaps we should remove them?)
We emit them sometimes... if there's a local declaration. The front-end would have to notice whether there are any locals, in order to suppress the unnecessarily lexical scopes.
Sorry, I meant we don't emit the line/file of lexical scopes (I get that we emit lexical scopes - if they contain variables, etc, but we don't seem to ever put a file/line/column on those)
(also, why are we complaining about the decl line/column on a lexical scope? We don't emit them anyway - perhaps we should remove them?)
We emit them sometimes... if there's a local declaration. The front-end would have to notice whether there are any locals, in order to suppress the unnecessarily lexical scopes.
Yeah, /probably/ should just relax the verifier and allow this - GCC seems fine with using line 0 if the user asked for it like this.
(also, why are we complaining about the decl line/column on a lexical scope? We don't emit them anyway - perhaps we should remove them?)
I think this is a front end issue. It crashes with -emit-llvm.
@llvm/issue-subscribers-clang-frontend
Extended Description
The following program compiles at -O0 without -g3, but ICE's when you add the -g3 flag.