Assertion failed:"Operand types in binary constant expression should match"
| Bugzilla Link | 28262 |
| Resolution | FIXED |
| Resolved on | Jun 23, 2016 11:03 |
| Version | trunk |
| OS | Windows NT |
| Attachments | reproducible source file |
Extended Description
clang version 3.9.0 Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\git\llvm\build\Debug\bin
SVN r273154 (20 June 2016).
$ clang -cc1 -std=c++11 "-triple" "x86_64-unknown-unknown" "-O2" -emit-llvm reduced.cpp
Assertion failed: C1->getType() == C2->getType() && "Operand types in binary constant expression should match", file C:\git\llvm\lib\IR\Constants.cpp, line 1740
The regression seems to have been caused by r270478.
The assertion is triggered during the loop unrolling phase.
Should be fixed in r273562.
Yes works for me now thanks!
Should be fixed in r273562.
Thanks, I'll look into it!
Adding Michael to CC as he is involved in this area of the compiler.