This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47396] Link error when declare a constant reference to a class or struct static const member!
- From: "aishen944 at 163 dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Jan 2011 13:45:52 +0000
- Subject: [Bug c++/47396] Link error when declare a constant reference to a class or struct static const member!
- Auto-submitted: auto-generated
- References: <bug-47396-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47396
ChenYongqiang <aishen944 at 163 dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
--- Comment #2 from ChenYongqiang <aishen944 at 163 dot com> 2011-01-21 13:45:37 UTC ---
but like this:
struct test
{
static const int i = 0;
};
int main(void)
{
const unsigned int &m = test::i;
}
no link errors!!!! why???