This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/22136] [4.1/4.2 regression] Rejects old-style using declaration



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]