This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7606: GCC interprets wrong.
- From: comer at pisem dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Aug 2002 21:15:11 -0000
- Subject: c++/7606: GCC interprets wrong.
- Reply-to: comer at pisem dot net
>Number: 7606
>Category: c++
>Synopsis: GCC interprets wrong.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Thu Aug 15 14:16:10 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Sergey Shandar
>Release: GCC 3.1.1 20020718 (prerelease)
>Organization:
>Environment:
CygWin, Windows 2000
>Description:
>How-To-Repeat:
g++ tmp_ns.cpp
>Fix:
template<class T> struct R {};
namespace A
{
struct S {};
void F(const R<S>&) {}
}
int main(void)
{
A::F(R<A::S>());
return 0;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="tmp_ns.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="tmp_ns.cpp"
dGVtcGxhdGU8Y2xhc3MgVD4gc3RydWN0IFIge307DQoNCm5hbWVzcGFjZSBBDQp7DQoJc3RydWN0
IFMge307DQoJdm9pZCBGKGNvbnN0IFI8Uz4mKSB7fQ0KfQ0KDQppbnQgbWFpbih2b2lkKQ0Kew0K
CUYoUjxBOjpTPigpKTsNCglyZXR1cm4gMDsNCn0NCg0KLyoNCmdjYyB2ZXJzaW9uIDIuOTUuMy01
IChjeWd3aW4gc3BlY2lhbCkgLi4uDQpnY2MgdmVyc2lvbiAzLjEuMSAyMDAyMDcxOCAocHJlcmVs
ZWFzZSkuDQoNCmcrKyBuc190bXAuY3BwDQoqLw==