[LLVMbugs] [Bug 21899] New: Crash with undefined variables with the name prefix "result"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 12 11:23:03 PST 2014


            Bug ID: 21899
           Summary: Crash with undefined variables with the name prefix
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: brettw at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Ran into this when working on this patch to Chromium:

This line causes the failure:
  EXPECT_EQ(value1, resulta.label); //  TODO FILE CLANK BUG
(line 259866 in preprocessed .cpp file in attachment).

"resulta" is undefined. This crash happens with any undefined variable prefixed
with "result". Calling it "result123" crashes. Calling it "aesult123" will not

<Spelling=../../testing/gtest/include/gtest/gtest_pred_impl.h:77:63>: current
parser token ')'
parsing namespace 'autofill'
parsing function body 'TestBody'
in compound statement ('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
clang version 3.6.0 (trunk 223109)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141212/8dfefefa/attachment.html>

More information about the llvm-bugs mailing list