++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.godfrey99 at gmail dot com
Target Milestone: ---
Compiles in GCC but not Clang:
decltype(auto) f() -> int;
The code is ill-formed because only auto is allowed with a trailing return
type.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.godfrey99 at gmail dot com
Target Milestone: ---
GCC does not give a good diagnostic for the following code:
template
constexpr int variable{};
int main() {
auto f
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.godfrey99 at gmail dot com
Target Milestone: ---
This bug is two-fold. GCC trunk gives an ICE when val is instantiated with an
lvalue reference:
int y;
template
T