This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2004 09:52:14 -0000
- Subject: [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.
- References: <20040817094023.17061.andrei.mischenko@mail.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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