[llvm-bugs] [Bug 28423] 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)));

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 5 03:11:54 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: biancacristinacristescu at gmail.com
                CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160705/705acc21/attachment-0001.html>


More information about the llvm-bugs mailing list