This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22252] [4.0/4.1 Regression] pragma interface/implementation still break synthesized methods
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2005 15:10:44 -0000
- Subject: [Bug c++/22252] [4.0/4.1 Regression] pragma interface/implementation still break synthesized methods
- References: <20050630145509.22252.matz@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-30 15:10 -------
(In reply to comment #1)
Yes which is why I did not confirm it yet because I did not look at fully. I just added the diagnostic
keyword because it is still a wrong warning. I am adding wrong-code also.
Reduced testcase:
---- a.ii ----
# 1 "a.cc"
# 0 "<built-in>"
# 1 "<command line>"
# 1 "a.cc"
#pragma implementation
# 1 "a.h" 1
struct B
{
B(){};
~B(){}
};
#pragma interface
struct A {
B a;
};
# 3 "a.cc" 2
---- use.ii ----
# 1 "use.cc"
# 0 "<built-in>"
# 1 "<command line>"
# 1 "use.cc"
# 1 "a.h" 1
struct B
{
B(){};
~B(){}
};
#pragma interface
struct A {
B a;
};
# 2 "use.cc" 2
A a;
int main() {}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2005-06-30 15:10:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22252