https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67017

--- Comment #5 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Anders Granlund from comment #3)
> > > I think that is because type deduction for return types of functions was
> > > introduced in c++14.
> 
> Yes, I understand why they reject it in C++11 mode, my point was that they
> all consistently accept it in C++14 mode.
> 
> > I noticed an interesting thing however. Consider this program:
> > 
> > auto i = 0, f();
> > auto f() { return false; }
> > int main() {}
> > 
> > Clang accepts it, but GCC rejects it (I didn't try EDG).
> 
> EDG accepts that too.

Yes, it is interesting that three different compilers seems to disagree with my
interpretation of the c++ standard. I still think this is a bug.

I'm trying to get a second option about this interpretation of the c++ standard
here:

https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/_xOC2ou49ZQ

Reply via email to