llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

very chatty error on expr "(?)"

Open amccarth-google opened this issue 11 years ago • 0 comments

Bugzilla Link 25301
Version unspecified
OS Windows NT

Extended Description

consider: void f() { while (?) { ; } }

clang generates the following diagnostics: error: expected expression while (?) { ^ error: expected expression while (?) { ^ error: expected ':' while (?) { ^ : note: to match this '?' while (?) { ^ error: expected expression while (?) { ^

amccarth-google avatar Oct 24 '15 00:10 amccarth-google