[GSoC] Header Generation for C/C++

Iain Buclaw ibuclaw at gdcproject.org
Thu Jul 18 04:51:55 UTC 2019


On Wed, 17 Jul 2019 at 18:05, Eduard Staniloiu via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Wednesday, 17 July 2019 at 14:28:34 UTC, Iain Buclaw wrote:
> > On Wed, 17 Jul 2019 at 15:40, Eduard Staniloiu via
> > Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> >>
> >>
> >> I have the following question: Can we use C++11 or would that
> >> break GDC / LDC? With C++11 we could use `enum class` which
> >> would solve this nicely. The issue with `enum class` is that
> >> it will break code since not the fields need to be prefixed
> >> with the enum name.
> >>
> >> But still, what do you think? What are the pros and cons of
> >> supporting/using C++11?
> >>
> >
> > No you cannot use C++11, yes it will break GDC bootstrap.
>
> Can you elaborate a bit on this, please? I'm curious what are the
> reasons why we cannot use it.
>
> Not really pushing for C++11, but I'd like to understand what is/
> which are the blocker/s.
>

The stage1 gcc bootstrap is built with -std=gnu++98, assumedly to be
compatible with the widest range of platforms possible that gcc
supports.  This is something controlled by the toplevel, and not in
the per-language build config.

-- 
Iain


More information about the Digitalmars-d mailing list