[libcxx] r261391 - Work around GCC bug in .fail.cpp tests
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 19 17:11:55 PST 2016
Author: ericwf
Date: Fri Feb 19 19:11:55 2016
New Revision: 261391
URL: http://llvm.org/viewvc/llvm-project?rev=261391&view=rev
Log:
Work around GCC bug in .fail.cpp tests
Modified:
libcxx/trunk/test/libcxx/test/format.py
Modified: libcxx/trunk/test/libcxx/test/format.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/format.py?rev=261391&r1=261390&r2=261391&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/format.py (original)
+++ libcxx/trunk/test/libcxx/test/format.py Fri Feb 19 19:11:55 2016
@@ -161,7 +161,13 @@ class LibcxxTestFormat(object):
'expected-error', 'expected-no-diagnostics']
use_verify = self.use_verify_for_fail and \
any([tag in contents for tag in verify_tags])
- extra_flags = ['-fsyntax-only']
+ # FIXME(EricWF): GCC 5 does not evaluate static assertions that
+ # are dependant on a template parameter when '-fsyntax-only' is passed.
+ # This is fixed in GCC 6. However for now we only pass "-fsyntax-only"
+ # when using Clang.
+ extra_flags = []
+ if self.cxx.type != 'gcc':
+ extra_flags += ['-fsyntax-only']
if use_verify:
extra_flags += ['-Xclang', '-verify',
'-Xclang', '-verify-ignore-unexpected=note']
More information about the cfe-commits
mailing list