Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
c++ - Internal error: gflow 386
code.c: #define n 5 #define add(x, y) ((x) + (y) >= n ? ((x) + (y) - n) : ((x) + (y))) #define sum(x, y) add(add(u[x], v[x]), add(u[y], v[y])) int main(void){ int x, y, z; unsigned short u[n], v[n]; // With // unsigned int u[n], v[n]; // there is no problem. return sum(x, sum(y, z)) != sum(sum(x, y), sum(x, z)) || sum(sum(x, y), z) != sum(sum(x, z), sum(y, z)) || sum(x, y) != sum(y, x); } dmc code.c -o Internal error: gflow 386 --- errorlevel 1 Without -o option it compiles fine. Tested with DMC v8.49. Thanks, Brian Apr 14 2007
|