[llvm-bugs] [Bug 42248] ICE when bool is #defined/typedef'd

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 12 01:54:41 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42248

Hao Zhong <zhonghao at pku.org.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #2 from Hao Zhong <zhonghao at pku.org.cn> ---
The code comes from an ICE bug report of gcc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54207

In addition, after the bug is fixed, gcc accepts the code. I tried icc. It also
accepts the code. Maybe, we shall reconsider the bug report.


(In reply to Richard Smith from comment #1)
> That's not an ICE, it's just a normal error being reported on your invalid
> code. You are not permitted to #define a keyword then include a standard
> library header.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190612/06c6d747/attachment.html>


More information about the llvm-bugs mailing list