This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9189: New parser problem
- From: Theodore dot Papadopoulo at sophia dot inria dot fr
- To: gcc-gnats at gcc dot gnu dot org
- Cc: Mark Mitchell <mark at codesourcery dot com>
- Date: 6 Jan 2003 15:12:34 -0000
- Subject: c++/9189: New parser problem
- Reply-to: Theodore dot Papadopoulo at sophia dot inria dot fr
>Number: 9189
>Category: c++
>Synopsis: New parser problem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 06 07:16:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Theo Papadopoulo
>Release: gcc version 3.4 20030105 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Regression from the old parser...
Compiling the code provided gives:
hawai->g++ ~/tmp/test6.C
/0/user/papadop/tmp/test6.C: In constructor `A::A()':
/0/user/papadop/tmp/test6.C:10: error: the default argument for parameter 0 of
`void A::f(int)' has not yet been parsed
which is (I believe) a wrong error.
>How-To-Repeat:
Compile the given code.
>Fix:
Change the way the default argument is given.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test6.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test6.C"
Ly8gQnVpbGQgZG9uJ3QgbGluazoKLy8gT3JpZ2luOiBUaGVvIFBhcGFkb3BvdWxvIDxUaGVvZG9y
ZS5QYXBhZG9wb3Vsb0Bzb3BoaWEuaW5yaWEuZnI+CgpjbGFzcyBBIHsKCiAgICBlbnVtIHsgdmFs
dWUgPSAxMCB9OwoKcHVibGljOgoKICAgIEEoKSB7IGYoKTsgfQoKICAgIHZvaWQgZihpbnQgaT12
YWx1ZSkgeyB9Cn07CgppbnQKbWFpbigpCnsKICAgIEEgYTsKfQo=