http://llvm.org/bugs/show_bug.cgi?id=22332
Bug ID: 22332
Summary: local labels in gtest-death-test-internal.h are not
compiled by gcc-5.0
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13734
--> http://llvm.org/bugs/attachment.cgi?id=13734&action=edit
[PATCH] use local labels instead of __LINE__
Compilation with gcc (GCC) 5.0.0 20150126 of trunk gives an error in expansion
of EXPECT_DEATH(VariantValue(VariantMatcher::SingleMatcher(varDecl())) at
llvm/tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp:149 due to
the use of __LINE__ in
utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h to
create local labels: in new gcc __LINE__ is replaced with different values and
thus the labels do not match [1].
Attached patch solves the problem by using a local label instead of __LINE__.
[1] <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64803>
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs