[arch-commits] Commit in gcc/trunk (PKGBUILD bz84080.patch)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Tue Mar 20 12:31:42 UTC 2018
Date: Tuesday, March 20, 2018 @ 12:31:41
Author: bpiotrowski
Revision: 319689
7.3.1+20180312-2: backport fix for BZ#84080
Added:
gcc/trunk/bz84080.patch
Modified:
gcc/trunk/PKGBUILD
---------------+
PKGBUILD | 11 ++++++++---
bz84080.patch | 27 +++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-20 10:56:10 UTC (rev 319688)
+++ PKGBUILD 2018-03-20 12:31:41 UTC (rev 319689)
@@ -9,7 +9,7 @@
pkgver=7.3.1+20180312
_majorver=${pkgver:0:1}
_islver=0.18
-pkgrel=1
+pkgrel=2
pkgdesc='The GNU Compiler Collection'
arch=(x86_64)
license=(GPL LGPL FDL custom)
@@ -20,7 +20,8 @@
source=(https://sources.archlinux.org/other/gcc/gcc-${pkgver/+/-}.tar.xz{,.sig}
#source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
- c89 c99)
+ c89 c99
+ bz84080.patch)
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski at archlinux.org
13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther at gmail.com
sha256sums=('c52618f656f2102b3544419e7d0a8a4f4e6ff052783865202be73edf1a40e28b'
@@ -27,7 +28,8 @@
'SKIP'
'6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b'
'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931'
- '2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a')
+ '2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a'
+ 'bce05807443558db55f0d6b4dae37a678ea1bb3388b541c876fe3d110e3717e7')
_svnrev=258469
_svnurl=svn://gcc.gnu.org/svn/gcc/branches/gcc-${_majorver}-branch
@@ -54,6 +56,9 @@
[[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc
cd gcc
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84080
+ patch -p0 -i "$srcdir/bz84080.patch"
+
# link isl for in-tree build
ln -s ../isl-${_islver} isl
Added: bz84080.patch
===================================================================
--- bz84080.patch (rev 0)
+++ bz84080.patch 2018-03-20 12:31:41 UTC (rev 319689)
@@ -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))
More information about the arch-commits
mailing list