First Last Prev Next    No search results available
Details
: [C/C++] Bogus warning about taking the address of 'regist...
Bug#: 133
: tools
: llvm-gcc
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: minor
: 1.1

:
: quality-of-implementation
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Chris Lattner <sabre@nondot.org>
Assigned To: Chris Lattner <sabre@nondot.org>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2003-11-19 13:36
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
------- Comment #1 From Chris Lattner 2003-11-19 15:33:50 -------
Here's a testcase:

struct item {
  short delta[4];
};

int TEST(int nt) {
 register struct item *aa;
 aa[nt].delta;
 return 1;
}
------- Comment #2 From Chris Lattner 2003-11-19 15:38:14 -------
Fixed.

Testcase here: CFrontend/2003-11-19-AddressOfRegister.c.tr

First Last Prev Next    No search results available