https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
--- Comment #7 from Jonathan Wakely ---
(In reply to Andrew Pinski from comment #6)
> (In reply to Noah Williams from comment #5)
> > It isn't? The library I was trying to compile included the "optional"
> > header, and I had looked it up and fo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
--- Comment #6 from Andrew Pinski ---
(In reply to Noah Williams from comment #5)
> It isn't? The library I was trying to compile included the "optional"
> header, and I had looked it up and found it was part of C++ 17, so I thought
> it was par
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
--- Comment #5 from Noah Williams ---
(In reply to Jonathan Wakely from comment #4)
> > The problem seems to be that, despite passing "-std=c++17", it doesn't use
> > c++17
> > header files for the Optional identifier.
>
> Why should it? The n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
--- Comment #4 from Jonathan Wakely ---
> The problem seems to be that, despite passing "-std=c++17", it doesn't use
> c++17
> header files for the Optional identifier.
Why should it? The name "Optional" is not part of any C++ standard.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
--- Comment #3 from Noah Williams ---
(In reply to Andrew Pinski from comment #2)
> Anyways this is not a GCC issue.
>
> The AttrBuilder::addAllocSizeAttr is declared in the preprocessed source
> as:
> AttrBuilder &addAllocSizeAttr(unsigned E
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
--- Comment #2 from Andrew Pinski ---
Anyways this is not a GCC issue.
The AttrBuilder::addAllocSizeAttr is declared in the preprocessed source as:
AttrBuilder &addAllocSizeAttr(unsigned ElemSizeArg,
const std:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED