aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor C. Richberger <taywee@gmx.com>2018-05-09 22:58:49 -0600
committerGitHub <noreply@github.com>2018-05-09 22:58:49 -0600
commit1823e82a452e93fc7198f95d14c042f21fc3e362 (patch)
tree6bad2c833c1de1410bac892e5ac64c2b6e312f70
parentMerge pull request #58 from bitc/master (diff)
parentAdd workaround for LeakSanitizer in Travis CI (diff)
downloadargs.hxx-1823e82a452e93fc7198f95d14c042f21fc3e362.tar.xz
Merge pull request #61 from pavel-belikov/fix-gcc8-build
Fix GCC 8 build
-rw-r--r--.travis.yml30
-rw-r--r--args.hxx2
2 files changed, 31 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index efba6f6..405ddac 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,6 +47,36 @@ matrix:
- os: linux
addons:
apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-7']
+ env: COMPILER=g++-7 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-7']
+ sudo: required
+ env: COMPILER=g++-7 CONFIG=Debug FLAGS='-fsanitize=address,undefined -fno-sanitize-recover=all -fuse-ld=gold'
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-8']
+ env: COMPILER=g++-8 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-8']
+ sudo: required
+ env: COMPILER=g++-8 CONFIG=Debug FLAGS='-fsanitize=address,undefined -fno-sanitize-recover=all -fuse-ld=gold'
+
+ - os: linux
+ addons:
+ apt:
sources: ['llvm-toolchain-precise-3.5', 'ubuntu-toolchain-r-test']
packages: ['clang++-3.5']
env: COMPILER=clang++-3.5 CONFIG=Release
diff --git a/args.hxx b/args.hxx
index 655718f..62bbfb3 100644
--- a/args.hxx
+++ b/args.hxx
@@ -1761,7 +1761,7 @@ namespace args
{
parserCoroutine(coro.Parser());
}
- catch (args::SubparserError)
+ catch (args::SubparserError&)
{
}
#else