[LLVMbugs] [Bug 13421] New: Clang fails to build unity-2d

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 20 02:15:32 PDT 2012


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

             Bug #: 13421
           Summary: Clang fails to build unity-2d
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: albert.astals at canonical.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When building unity-2d with clang i get the following error

In file included from
/home/tsdgeos_work/unity-2d/unity-2d_trunk/libunity-2d-private/src/unity2ddeclarativeview.cpp:17:
/home/tsdgeos_work/unity-2d/unity-2d_trunk/libunity-2d-private/src/unity2ddeclarativeview.h:58:124:
error: expected ')'
    void setSource(const QUrl& source, const QMap<const char*, QVariant>
&rootObjectProperties = QMap<const char*, QVariant>());
                                                                               
                                           ^
/home/tsdgeos_work/unity-2d/unity-2d_trunk/libunity-2d-private/src/unity2ddeclarativeview.h:58:19:
note: to match this '('
    void setSource(const QUrl& source, const QMap<const char*, QVariant>
&rootObjectProperties = QMap<const char*, QVariant>());
                  ^
/home/tsdgeos_work/unity-2d/unity-2d_trunk/libunity-2d-private/src/unity2ddeclarativeview.h:58:114:
error: expected '>'
    void setSource(const QUrl& source, const QMap<const char*, QVariant>
&rootObjectProperties = QMap<const char*, QVariant>());
                                                                               
                                 ^
/home/tsdgeos_work/unity-2d/unity-2d_trunk/libunity-2d-private/src/unity2ddeclarativeview.cpp:92:30:
error: out-of-line definition of 'setSource' does not match any declaration in
'Unity2DDeclarativeView'
void Unity2DDeclarativeView::setSource(const QUrl &source, const QMap<const
char*, QVariant> &rootObjectProperties)


Seems as if clang does not like the 
void setSource(const QUrl& source, const QMap<const char*, QVariant>
&rootObjectProperties = QMap<const char*, QVariant>());
declaration.

I think this is a correct function declaration, but maybe i'm wrong (at least
gcc does not complain)

-- 
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