Section 12.1.13A of the Standard & gcc

Alexandre Oliva
Thu Jun 15 15:05:00 GMT 2000

On Jun 15, 2000, Michael Vance <> wrote:

> Gcc does not appear to think that A() can promote to type of A&

It's correct.  Temporaries can't be bound to non-const references.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

More information about the Gcc-bugs mailing list