This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9259: [2003-04-07] Calling a non-qualified member function within a sizeof() expression leads to "invalid use of undefined type"
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<bangerth at ticam dot utexas dot edu>,<gcc-prs at gcc dot gnu dot org>
- Date: Sun, 4 May 2003 19:10:57 +0200
- Subject: Re: c++/9259: [2003-04-07] Calling a non-qualified member function within a sizeof() expression leads to "invalid use of undefined type"
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9259
It was not noted in this PR, but to fix the bug it's sufficient to qualify
the function call (sizeof(S::check()) instead of sizeof(check())), which
means that the bug happens only in non-qualified member function calls
within sizeof expressions.
Giovanni Bajo