diff options
author | Antonio Rojas | 2019-04-08 18:58:20 +0000 |
---|---|---|
committer | Antonio Rojas | 2019-04-08 18:58:20 +0000 |
commit | 69d4992615b6e76d9c7c7102190c5749f3857804 (patch) | |
tree | cf6d6e437e868096c068385a6bb1f6eb0909cbed /bz84080.patch | |
download | aur-69d4992615b6e76d9c7c7102190c5749f3857804.tar.gz |
Dropped from repos
Diffstat (limited to 'bz84080.patch')
-rw-r--r-- | bz84080.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bz84080.patch b/bz84080.patch new file mode 100644 index 000000000000..8999f6e6d5b4 --- /dev/null +++ b/bz84080.patch @@ -0,0 +1,27 @@ +Index: gcc/testsuite/g++.dg/cpp1y/auto-fn47.C +=================================================================== +--- gcc/testsuite/g++.dg/cpp1y/auto-fn47.C (nonexistent) ++++ gcc/testsuite/g++.dg/cpp1y/auto-fn47.C (revision 257630) +@@ -0,0 +1,6 @@ ++// PR c++/84080 ++// { dg-do compile { target c++14 } } ++ ++template <int i, typename T> T foo(); ++ ++template <> auto foo<0>() { return 42; } // { dg-error "does not match" } +Index: gcc/cp/pt.c +=================================================================== +--- gcc/cp/pt.c (revision 257629) ++++ gcc/cp/pt.c (revision 257630) +@@ -2203,6 +2203,11 @@ + specialize TMPL will produce DECL. */ + continue; + ++ if (uses_template_parms (targs)) ++ /* We deduced something involving 'auto', which isn't a valid ++ template argument. */ ++ continue; ++ + /* Remove, from the set of candidates, all those functions + whose constraints are not satisfied. */ + if (flag_concepts && !constraints_satisfied_p (fn, targs)) |