<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - transitive module define/undefine not quite right"
href="http://llvm.org/bugs/show_bug.cgi?id=19692">19692</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>transitive module define/undefine not quite right
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>richard-llvm@metafoo.co.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Suppose we have:
module cstd.stdint:
#define INT64_MAX 42
module LLVMSupport.Blah:
#include "stdint.h"
module LLVMSupport.AIXDataTypesFix
#undef INT64_MAX
module LLVMTarget.Blah:
import LLVMSupport.Blah;
int use = INT64_MAX;
module LLVMTarget.Foo:
// stuff
my.cc:
import LLVMTarget.Foo
import stdint
int k = INT64_MAX; // error!
We reject the last line because we can't find a definition of INT64_MAX. What
went wrong here is that LLVM_Target emitted the IdentifierInfo data for
'INT64_MAX' but didn't include the overriding information for imported macro
definitions, and we didn't look into LLVMSupport nor into cstd when looking for
the macro because they're transitively imported by LLVMTarget.
=> We need to re-export the visibility and overriding information when we
re-export another module file's macro definitions.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>