<html>
<head>
<base href="https://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 --- - error: too many arguments to function call, expected single argument '__pq', have 2 arguments void swap(priority_queue __pq) noexcept(noexcept(swap(comp, comp)));"
href="https://llvm.org/bugs/show_bug.cgi?id=28423">28423</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error: too many arguments to function call, expected single argument '__pq', have 2 arguments void swap(priority_queue __pq) noexcept(noexcept(swap(comp, comp)));
</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>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>biancacristinacristescu@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This issue is seen when building llvm self-hosted with libstdc++.
The invocation is:
"/home/biancacr/clang_build_/inst/bin/clang-3.9" -cc1 -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I
includes/home/biancacr/clang_build_/objmod/lib/CodeGen -I
includes/home/biancacr/clang_build_/src/lib/CodeGen -I
includes/home/biancacr/clang_build_/objmod/include -I
includes/home/biancacr/clang_build_/src/include -I
includes/usr/include/c++/5.2.1 -I
includes/usr/include/x86_64-linux-gnu/c++/5.2.1 -I
includes/usr/include/x86_64-linux-gnu/c++/5.2.1 -I includes/usr/local/include
-I includes/home/biancacr/clang_build_/inst/lib/clang/3.9.0/include -I
includes/usr/include/x86_64-linux-gnu -I includes/usr/include -std=c++11
-fmodules -fimplicit-module-maps -fmodules-cache-path=./module.cache
-fmodules-local-submodule-visibility LiveDebugValues.cpp
It seems like there is a misbehaviour between how the:
#pragma GCC system_header
is treated in the non-module case and in the modules case.
The reproducer needs to use namespace std{} as well. There might be a specific
code path that is taken only in the case of std.</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>