Bugzilla – Bug 133
[C/C++] Bogus warning about taking the address of 'register' variable
Last modified: 2003-11-19 15:38:14
You need to log in before you can comment on or make changes to this bug.
The C/C++ front-end spits this out: Lexer.cpp:1412: warning: address requested for `yy_cp', which is declared `register' Even though we _are not_ taking the address of a register variable. -Chris
Here's a testcase: struct item { short delta[4]; }; int TEST(int nt) { register struct item *aa; aa[nt].delta; return 1; }
Fixed. Testcase here: CFrontend/2003-11-19-AddressOfRegister.c.tr