<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [Modules TS] definition of X must be imported from module 'Y.<global>' before it is required"
href="https://bugs.llvm.org/show_bug.cgi?id=35395">35395</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[Modules TS] definition of X must be imported from module 'Y.<global>' before it is required
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>enhancement
</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>boris@codesynthesis.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19459" name="attach_19459" title="Reproducing script.">attachment 19459</a> <a href="attachment.cgi?id=19459&action=edit" title="Reproducing script.">[details]</a></span>
Reproducing script.
The attached reproducer causes the following unexpected error:
In file included from driver.cxx:1:
/tmp/repro/std.mxx:20:15: error: definition of '' must be imported from module
'mystd.<global>' before it is required
fpos(): _M_state () {}
^
/tmp/repro/std.mxx:31:27: note: in instantiation of member function
'mystd::fpos<__mbstate_t>::fpos' requested here
fpos<__mbstate_t> p;
^
driver.cxx:6:6: note: in instantiation of member function
'mystd::basic_istringstream<char>::seekg' requested here
is.seekg (0);
^
/tmp/repro/std.mxx:1:9: note: previous definition is here
typedef struct
Note that naming the struct fixes '' but does not get rid of the error. I am
also observing what appears to be related error (haven't come up with a
reproducer for it yet):
/home/boris/work/build2/libbutl/libbutl/standard-version.cxx:57:22: error:
declaration of 'strtoull' must be imported from module 'std.core.<global>'
before it
is required
uint64_t r (std::strtoull (b, &e, 10));
^
/home/boris/work/build2/tests/modules/gcc/gcc-install/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../include/c++/8.0.0/cstdlib:245:22:
note: previous
declaration is here
using ::__gnu_cxx::strtoull;</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>