Skip to content

Instantly share code, notes, and snippets.

View rofirrim's full-sized avatar

Roger Ferrer Ibáñez rofirrim

View GitHub Profile
@rofirrim
rofirrim / test.c
Created January 30, 2013 17:09
Intel C/C++ 12.0.4 generates wrong code and the assertion fails. Intel C/C++ 11 generates correct code.
#include <stdio.h>
#include <assert.h>
int c[4+3][3*2];
void f(int * const n, int * const m, int (**v)[*m * 2])
{
assert(&(c[*n][*m]) == &((*v)[*n][*m]));
}