[llvm-bugs] [Bug 41644] New: Debugger doesn't stop on "else if (<condition>)"
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Apr 28 23:08:52 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41644
Bug ID: 41644
Summary: Debugger doesn't stop on "else if (<condition>)"
Product: clang
Version: 6.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: yuri at tsoft.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Testcase:
#include <iostream>
bool f1() {return false;}
bool f2() {return true;}
int main() {
if (f1()) {
std::cout << "1" << std::endl;
} else if (f2()) {
std::cout << "2" << std::endl;
} else {
std::cout << "3" << std::endl;
}
return 0;
}
Please build it (clang++ -g -o testcase testcase.cpp) and observe that right
after the f1() line the debugger steps on the "2" line, skipping f2().
gdb-8.2.1_3,
llvm80-8.0.0
FreeBSD 11.2 amd64
--
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/20190429/2c41bf61/attachment.html>
More information about the llvm-bugs
mailing list