This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22136] [4.1/4.2 regression] Rejects old-style using declaration
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2006 00:04:44 -0000
- Subject: [Bug c++/22136] [4.1/4.2 regression] Rejects old-style using declaration
- References: <bug-22136-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from mmitchel at gcc dot gnu dot org 2006-01-16 00:04 -------
Created an attachment (id=10650)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10650&action=view)
Patch that disallows nested-name-specifiers for constructors when in class
scope.
This patch is not recommended, but it does seem to work, modulo the fact that
it makes this code fail even with -fpermissive:
struct S { S::S(); };
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22136