[llvm-bugs] [Bug 39206] New: [Modules TS] Macro defined in module interface cannot be set in implementation
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 6 17:38:32 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: mwasplund at gmail.com
CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181007/65b30dce/attachment.html>
More information about the llvm-bugs
mailing list