[llvm-commits] [lld] [PATCH] "friend class" fixes
Evandro Menezes
emenezes at codeaurora.org
Wed Apr 25 12:34:16 PDT 2012
FWIW, GCC 4.7 seems to address most C++11 issues I found before building
LLD.
--
Evandro Menezes Austin, TX emenezes at codeaurora.org
Qualcomm Innovation Center, Inc is a member of the Code Aurora Forum
On 04/25/12 13:26, Richard Smith wrote:
> On Wed, Apr 25, 2012 at 9:27 AM, Nick Kledzik <kledzik at apple.com
> <mailto:kledzik at apple.com>> wrote:
>
>
> On Apr 25, 2012, at 5:53 AM, Jay Foad wrote:
> > Hi,
> >
> > When building lld with gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 I
> get:
> >
> > [100%] Building CXX object
> >
> projects/lld/lib/Platforms/Darwin/CMakeFiles/lldDarwinPlatform.dir/ExecutableWriter.cpp.o
> >
> /home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:338:3:
> > error: a class-key must be used when declaring a friend
> >
> /home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:338:3:
> > error: friend declaration does not name a class or function
> >
> /home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:339:3:
> > error: a class-key must be used when declaring a friend
> >
> /home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:339:3:
> > error: friend declaration does not name a class or function
> >
> > The attached patch fixes this. OK to commit?
> Yes.
>
>
> This is a C++11 feature (which apparently g++4.6 does not support). I
> have no idea whether lld intends to support g++4.6.
>
> Is this something clang should be warning about too?
>
>
> It does, under -Wc++98-compat.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list