tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: nested_exception.h vs. clang



In article <20120328151948.GL16022%danbala.tuwien.ac.at@localhost>,
Thomas Klausner  <wiz%NetBSD.org@localhost> wrote:
>Hi!
>
>When compiling some packages with clang (the version installed by
>HAVE_LLVM and MKLLVM), they fail with:
>
>In file included from /usr/include/g++/exception:151:
>/usr/include/g++/nested_exception.h:122:61: error: redefinition of
>default argument
>    __throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
>                                                            ^ ~
>/usr/include/g++/nested_exception.h:110:56: note: previous definition is here
>    __throw_with_nested(_Ex&&, const nested_exception* = 0)
>                                                       ^ ~
>1 error generated.
>
>
>Suggestions?
> Thomas

clang is correct; C++ default arguments are illegal in the function defininion.
http://msdn.microsoft.com/en-us/library/91563f79%28v=vs.80%29.aspx
s/ = 0// in line 122.

christos



Home | Main Index | Thread Index | Old Index