[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


http://llvm.org/bugs/show_bug.cgi?id=21899

            Bug ID: 21899
           Summary: Crash with undefined variables with the name prefix
                    "result"
           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:
https://codereview.chromium.org/772253003/

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
crash.


1.   
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:361:3
<Spelling=../../testing/gtest/include/gtest/gtest_pred_impl.h:77:63>: current
parser token ')'
2.   
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:38:1:
parsing namespace 'autofill'
3.   
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:341:63:
parsing function body 'TestBody'
4.   
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:341:63:
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
invocation)
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