This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8534: [3.3 regression] When compiling qt contradicting aliasing class created for bitfield constructor
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jh at suse dot cz, kenner at gnat dot org, nobody at gcc dot gnu dot org
- Date: 5 Dec 2002 15:19:06 -0000
- Subject: Re: c++/8534: [3.3 regression] When compiling qt contradicting aliasing class created for bitfield constructor
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jh at suse dot cz, kenner at gnat dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: [3.3 regression] When compiling qt contradicting aliasing class created for bitfield constructor
State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Thu Dec 5 07:19:03 2002
State-Changed-Why:
I can confirm this with recent 3.3 on sparc (!), 3.2 works just fine.
The problem can be reduced to the following code snippet:
------------------- snip ---------------------------------
class QWidget
{
public: void repaint( bool erase = 1 );
};
void f (void)
{
typedef void (QWidget::*A)(bool);
A b = &QWidget::repaint;
}
------------------- snip ---------------------------------
The initializer for repaint is mandatory.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8534