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]

c++/1924: compiler fails to parse valid (I think) construct



>Number:         1924
>Category:       c++
>Synopsis:       compiler fails to parse valid (I think) construct
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 09 15:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     V Lakshmanan
>Release:        g++ 2.95.2
>Organization:
>Environment:
Solaris 2.7
>Description:
A valid construct fails to compile when we
chain a couple of constructors together.
Get a parse error.
>How-To-Repeat:
compile the attached file
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"

CmNsYXNzIEEKewpwcml2YXRlOgogIGludCB4OwogIApwdWJsaWM6CiAgc3RhdGljIEEgZ2V0QShp
bnQgaW4pCiAgICB7CiAgICAgIEEgYTsKICAgICAgYS54ID0gaW47CiAgICAgIHJldHVybiBhOwog
ICAgfQp9CjsKCmNsYXNzIEIKewogIEEgYTsKICAKcHVibGljOgogIEIoY29uc3QgQSYgaW4pCiAg
ICA6IGEoaW4pCiAgICB7CiAgICB9Cn0KOwoKY2xhc3MgQwp7CiAgQiBhOwogIEIgYjsKICBpbnQg
dmFsOwogIApwdWJsaWM6CiAgQyhjb25zdCBCJiBpbiwgY29uc3QgQiYgaW4yLCBpbnQgeCkKICAg
IDogYShpbiksIGIoaW4yKSwgdmFsKHgpCiAgICB7CiAgICB9Cn0KOwoKaW50IG1haW4oKQp7CiAg
Ly8gcGFyc2VzIGZpbmUKICBCIGIoIEE6OmdldEEoNCkgKTsKICBDIG9iajIoIGIsIGIsIDMgKTsK
CiAgLy8gInR5cGUgc3BlY2lmaWVyIG9taXR0ZWQgZm9yIHBhcmFtZXRlciIKICBDIG9iaiggQigg
QTo6Z2V0QSg0KSApLAogICAgICAgICBCKCBBOjpnZXRBKDUpICksCiAgICAgICAgIDMgKTsKfQo=


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