https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120247
Bug ID: 120247 Summary: __builtin_assoc_barrier and binding to a reference type Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ Assignee: pinskia at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Take: ``` void f(int &); void g(int a) { f(__builtin_assoc_barrier(a)); } void fp(int *); void gp(int a) { fp(&__builtin_assoc_barrier(a)); } ``` GCC accepts them and allows binding a temporay to an int& and even take the address of it.