[Bug c++/86351] Array references as arguments to ternary operator

2018-06-29 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86351 Richard Biener changed: What|Removed |Added Keywords||accepts-invalid Status|UNCO

[Bug c++/86351] Array references as arguments to ternary operator

2018-06-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86351 --- Comment #1 from Jonathan Wakely --- (In reply to Simon Richter from comment #0) > The code > > char const array1[2] = { 'a', 'b' }; > char const array2[2] = { 'c', 'd' }; > > char foo(bool b) { > char const (&bar)[2] = b