https://bugs.llvm.org/show_bug.cgi?id=39206
Bug ID: 39206
Summary: [Modules TS] Macro defined in module interface cannot
be set in implementation
Product: clang
Version: 7.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Modules
Assignee: unassignedclangb...@nondot.org
Reporter: mwaspl...@gmail.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
Created attachment 20973
--> https://bugs.llvm.org/attachment.cgi?id=20973&action=edit
Repro with build script
When I define a macro in a header that is included in both the implementation
and interface modules the defined checks fail in the implementation module.
### HEADER.H
#define MACRO
### MODULE.CPPM
#include "HEADER.H"
export module MyModule;
#ifndef MACRO
#error MISSING MACRO
#end
### IMPL.CPP
#include "HEADER.H"
module MyModule;
#ifndef MACRO
#error MISSING MACRO
#end
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs