[LLVMbugs] [Bug 13373] New: nested_exception.h:122:61: error: redefinition of default argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 16 01:48:43 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13373

             Bug #: 13373
           Summary: nested_exception.h:122:61: error: redefinition of
                    default argument
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: wbrana at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang++ -o main.o -c -O3 -DQT_NO_DEBUG -fvisibility=hidden
-fvisibility-inlines-hidden -fomit-frame-pointer -fno-exceptions
-fno-stack-protector --param max-inline-insns-single=32 --param
max-inline-insns-auto=32 -w -funroll-loops --param max-unrolled-insns=32
-march=native -std=c++0x -DQT_SHARED -I/usr/include/qt4
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtSql main.cpp
In file included from main.cpp:1:
In file included from ./a.h:6:
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include/g++-v4/typeinfo:35:
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include/g++-v4/exception:151:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include/g++-v4/nested_exception.h:122:61:
error: redefinition of default argument
    __throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
                                                            ^ ~
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include/g++-v4/nested_exception.h:110:56:
note: previous definition is here
    __throw_with_nested(_Ex&&, const nested_exception* = 0)
                                                       ^ ~
1 error generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list