[PATCH] rvalue reference implementation for C++0x

Doug Gregor doug.gregor@gmail.com
Wed May 30 15:40:00 GMT 2007


On 5/26/07, Jason Merrill <jason@redhat.com> wrote:
> >> tsubst: We generally don't control DR resolution behavior changes with
> >> flag_cpp0x; my impression has been that the flag is intended for
> >> controlling new features.
> >
> > It's intended to process C++0x rather than C++98/03. The DR in
> > question (DR 106) came after TC1, and is in the C++0x Working Paper...
> > so it should only apply in C++0x mode. The DR is here... it's marked
> > "WP", not "TC1":
>
> I think it should apply to the default mode, whatever that is.  Perhaps
> have a strict c++98 mode that works differently.

So -std=gnu++98 (the default) will collapse references as a GNU
extension (and C++0x feature), while -std=c++98 would not. Fine by me.

  - Doug



More information about the Gcc-patches mailing list