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]

c++/9189: New parser problem


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


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