-
Bug
-
Resolution: Unresolved
-
Medium
-
Code Generation Tools
-
CODEGEN-4298
-
-
The following code will crash the compiler during the code generator's decomposition pass:
#include <initializer_list>
#include <stdio.h>
struct S {
int m;
S(int i=1) : m {}
operator int()
int operator +(const S& r)
{ return m+r.m; }};
int f00(S (&&r)[3])
int main(void)
{
int x, g;
x = 100;
g = f00(
);
if (g != x)
printf("Got %d instead of %d", g, x);
return (2);
}
when compiled with:
> armcl -mv7m4 --abi=eabi -g --cpp_default -c test.cpp
Removing the debug option will make the decomp crash go away.