https://llvm.org/bugs/show_bug.cgi?id=28423
Bug ID: 28423 Summary: error: too many arguments to function call, expected single argument '__pq', have 2 arguments void swap(priority_queue __pq) noexcept(noexcept(swap(comp, comp))); Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Modules Assignee: unassignedclangb...@nondot.org Reporter: biancacristinacriste...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified 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. -- 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