[LLVMdev] Advice on a VStudio specific patch

me22 me22.ca at gmail.com
Thu May 31 22:38:04 PDT 2007

On 01/06/07, Chuck Rose III <cfr at adobe.com> wrote:
> Nope, it generates an error, not a warning-as-error.  (LLVM generates a whole host of warnings when run through the VStudio STL implementation).  I misspoke earlier about VStudio ignoring noreturn.   I investigated further and found that the implementation of abort in VStudio 2k5 is not tagged noreturn, hence the error.
That doesn't seem conforming to me...

int foo() {}
int main(int argc, char **argv) { if (argc < 0) return foo(); }

is, afaik, a perfectly well-defined C++ program, and issuing fatal
diagnostics on well-formed programs sure doesn't seem kosher.

~ Scott McMurray

More information about the llvm-dev mailing list