[Bug c++/67012] New: decltype(auto) with trailing return type

2015-07-25 Thread david.godfrey99 at gmail dot com
++ 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.

[Bug c++/66924] New: Bad diagnostic for parameter name used as non-type template argument

2015-07-17 Thread david.godfrey99 at gmail dot com
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

[Bug c++/66619] New: Internal compiler error: variable template deduced by template argument deduction

2015-06-21 Thread david.godfrey99 at gmail dot com
: 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