Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Error when using -fms-extensions and #pragma detect_mismatch #41048

Open Quuxplusone opened 5 years ago

Quuxplusone commented 5 years ago
Bugzilla Link PR42078
Status NEW
Importance P normal
Reported by Joshua Boyce (raptorfactor@raptorfactor.com)
Reported on 2019-05-30 15:10:36 -0700
Last modified on 2019-05-30 15:10:36 -0700
Version trunk
Hardware PC Linux
CC llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments repro.zip (1779 bytes, application/x-zip-compressed)
Blocks
Blocked by
See also
Created attachment 22055
Minimal repro files

Reproduces under Ubuntu 19.04 with both Clang 8 from the Canonical repository,
and Clang 9 from the LLVM Nightly packages. Does not appear to reproduce under
WSL on Windows. clang-cl on Windows also works fine.

Example:
#define X 0
#pragma detect_mismatch("X", "0")

Minimal repro with output attached.
Quuxplusone commented 5 years ago

Attached repro.zip (1779 bytes, application/x-zip-compressed): Minimal repro files