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++/17061] c++ syntax analyser bug. "A a(int(x));" declares an object and calls a constructor, but is parsed as if it were "A a(int x);" which declares a function pointer.


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-17 09:52 -------
Dup of bug 11796 which is already fixed for 3.4.0 by the new C++ parser.

*** This bug has been marked as a duplicate of 11796 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |rejects-valid
         Resolution|                            |DUPLICATE
            Summary|c++ syntax analyser bug. "A |c++ syntax analyser bug. "A
                   |a(int(x));" declares an     |a(int(x));" declares an
                   |object and calls a          |object and calls a
                   |constructor, but is parsed  |constructor, but is parsed
                   |as if it were "A a(int x);" |as if it were "A a(int x);"
                   |which declares a function   |which declares a function
                   |pointer.                    |pointer.
   Target Milestone|---                         |3.4.0


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


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