llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

range-based for loop temporary range_expression results in "'__range' initialized to a garbage value"

Open llvmbot opened this issue 11 years ago • 3 comments

Bugzilla Link 25254
Resolution DUPLICATE
Resolved on Dec 30, 2015 13:17
Version trunk
OS Linux
Attachments scan-build report
Reporter LLVM Bugzilla Contributor
CC @devincoughlin

Extended Description

for (auto a : std::vector{0, argc}) {...}

results in "Called c++ object pointer is uninitialized"

llvmbot avatar Oct 19 '15 18:10 llvmbot

mentioned in issue llvm/llvm-bugzilla-archive#25777

devincoughlin avatar Nov 26 '21 21:11 devincoughlin

Thanks for the report! This is fixed as of r255859.

*** This bug has been marked as a duplicate of bug llvm/llvm-bugzilla-archive#25777 ***

devincoughlin avatar Dec 30 '15 21:12 devincoughlin

assigned to @tkremenek

llvmbot avatar Oct 19 '15 18:10 llvmbot