sandbox/bugs/inconsistent_rotation.c
Inconsistent rotation of doubly indexed variables
The code…
tensor a[];
(x) #x //string replacement before expansion of foreach_dimension()
@define str
int main() {
foreach_dimension() {
(a.x.x.name);
puts (str(b_x_x));
puts (str(c.x.x));
puts }
}
… prints:
.x.x
a
b_x_x .x.x
c.y.y
a<-- _x_y not _y_y
b_x_y .y.y c
Is seams _ and . suffixes are not treated the same.