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++/20905] [3.4/4.0/4.1 Regression] confuses unrelated type name with instance name


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-08 16:58 -------
Confirmed, most reduced testcase:
struct name {};
void g ()
{
  if (int name = 1)
  ;
}

: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).
Looks like it was introduced by the new C++ parser.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-08 16:58:00
               date|                            |
            Summary|confuses unrelated type name|[3.4/4.0/4.1 Regression]
                   |with instance name          |confuses unrelated type name
                   |                            |with instance name
   Target Milestone|---                         |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20905


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