summaryrefslogtreecommitdiff
blob: 6b0bad369b86834f15e9a74441d24c85edf5d840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From b3481e66f2014dece48d8dfe8affa416d8d4e104 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyfox@gentoo.org>
Date: Thu, 27 Aug 2020 07:51:14 +0100
Subject: [PATCH 1/2] lib/tests/stdboosterror.h: use unambiguous form of
 variable declaration

Original expression has an ambiguity and should not compile:
https://gcc.gnu.org/PR86564

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
 lib/tests/stdboosterror.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tests/stdboosterror.h b/lib/tests/stdboosterror.h
index 568545b..d59bfa6 100644
--- a/lib/tests/stdboosterror.h
+++ b/lib/tests/stdboosterror.h
@@ -4,7 +4,7 @@
 #include <boost/regex/pattern_except.hpp>
 
 static boost::regex_error
-        std_boost_exception(boost::regex_error(boost::regex_constants::error_bad_pattern));
+        std_boost_exception = boost::regex_error(boost::regex_constants::error_bad_pattern);
 
 /**
  * returns the string representing a standard exception (which
-- 
2.28.0