Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Expression evaluation of printf is incorrect (TestPrintf.py) #35688

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR36715
Status NEW
Importance P normal
Reported by Vedant Kumar (vsk@apple.com)
Reported on 2018-03-13 16:26:11 -0700
Last modified on 2020-01-14 05:58:52 -0800
Version unspecified
Hardware PC All
CC emaste@freebsd.org, labath@google.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

The expr evaluator claims printf("Hello\n") returns 0, but it should return 6. This was tracked as rdar://24599697 and mistakenly closed, it seems.

Quuxplusone commented 4 years ago

The problem is to be that we end up calling the member "printf" function instead of the extern "C" version. D70846/a705cf1ac fixes that for the case of "manual" dwarf index.