Are clang++ and libc++ compatible?
Steve Kargl
sgk at troutmask.apl.washington.edu
Tue Nov 12 17:55:57 UTC 2013
On Tue, Nov 12, 2013 at 06:37:39PM +0100, Dimitry Andric wrote:
> On 12 Nov 2013, at 17:54, Steve Kargl <sgk at troutmask.apl.washington.edu> wrote:
> >
> > struct Entry {
> > time_t date;
> > Severity severity;
> > std::deque<Entry> messages;
> > std::string message;
> > bool is_child;
> > Entry() : is_child(false) { }
> > };
>
> I think the problem is that the code tries to use std::deque<Entry> as a
> member of struct Entry, before it is completely defined. This is not
> allowed by the standard, although some libraries (e.g. GNU libstdc++)
> apparently permit it for some container types.
>
> You could try to work around it with -fdelayed-template-parsing, but I
> am not sure if it will help. Alternatively, compile the code with
> libstdc++, or rewrite it to conform. :-)
>
Thanks for the suggestions. -fdelayed-template-parsing did not
help. (Un)fortunately, I know very little about C++, so rewriting
the code is not option for me. I guess I'll add a USE_GCC to the
port's Makefile to if it will build.
--
Steve
More information about the freebsd-current
mailing list