c++/925: Follow-up to c++/909 with more info

rmgiroux@hotmail.com rmgiroux@hotmail.com
Wed Nov 29 07:16:00 GMT 2000


>Number:         925
>Category:       c++
>Synopsis:       Follow-up to c++/909 with more info
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 29 07:16:02 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     rmgiroux@hotmail.com
>Release:        2.95.2 && gcc version 2.97 20001120 (experimental)
>Organization:
>Environment:
Linux, cygwin
>Description:
Here's the error messages resulting from compilation of the c++/909 test case, with calls added to a method in the constructed objects so the compiler prints what it THINKS the constructor is generating.

testExp.cpp: In function `int main()':
testExp.cpp:21: type specifier omitted for parameter
testExp.cpp:22: type specifier omitted for parameter
testExp.cpp:28: type specifier omitted for parameter
testExp.cpp:31: request for member `f' in `a', which is of non-aggregate type `A ()(A::Nested)'
testExp.cpp:32: request for member `f' in `b', which is of non-aggregate type `A ()(A::Nested (*)(int))'
testExp.cpp:35: request for member `f' in `e', which is of non-aggregate type `A ()(A::Nested)'
testExp.cpp:38: request for member `f' in `g', which is of non-aggregate type `B ()(A::Nested)'
>How-To-Repeat:
Compile the attached file.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/cpp; name="testExp.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testExp.cpp"

Y2xhc3MgQSB7CiAgICBwdWJsaWM6CiAgICAgICAgc3RydWN0IE5lc3RlZCB7IE5lc3RlZChpbnQg
aSkge30gfTsKCiAgICAgICAgQShjb25zdCBOZXN0ZWQgJm4sIGludCAqcD0wKSA7CgogICAgICAg
IGludCBmKHZvaWQpOwp9OwoKY2xhc3MgQiB7CiAgICBwdWJsaWM6CiAgICAgICAgQihjb25zdCBB
OjpOZXN0ZWQgJm4sIGludCAqcD0wKTsKCiAgICAgICAgaW50IGYodm9pZCk7Cn07CgppbnQgbWFp
bih2b2lkKQp7CiAgICBpbnQgKlo9MDsKICAgIGludCBpPTE7CiAgICBBIGEoQTo6TmVzdGVkKGkp
LCBaKTsgICAgICAvLyBFUlJPUjogIHR5cGUgc3BlY2lmaWVyIG9taXR0ZWQgZm9yIHBhcmFtZXRl
cgogICAgQSBiKEE6Ok5lc3RlZChpbnQoaSkpLCBaKTsgLy8gRVJST1I6ICB0eXBlIHNwZWNpZmll
ciBvbWl0dGVkIGZvciBwYXJhbWV0ZXIKICAgIEEgYyhBOjpOZXN0ZWQoKGludClpKSwgWik7IC8v
IE9LCiAgICBBIGQoQTo6TmVzdGVkKDEpLCBaKTsgICAgICAvLyBPSwogICAgQSBlKEE6Ok5lc3Rl
ZChpKSk7ICAgICAgICAgLy8gT0sKICAgIEEgZihpLCBaKTsgICAgICAgICAgICAgICAgIC8vIE9L
CgogICAgQiBnKEE6Ok5lc3RlZChpKSwgWik7ICAgICAgLy8gRVJST1I6ICB0eXBlIHNwZWNpZmll
ciBvbWl0dGVkIGZvciBwYXJhbWV0ZXIKICAgIEIgaChpLCBaKTsgICAgICAgICAgICAgICAgIC8v
IE9LCgogICAgYS5mKCk7CiAgICBiLmYoKTsKICAgIGMuZigpOwogICAgZC5mKCk7CiAgICBlLmYo
KTsKICAgIGYuZigpOwogICAgCiAgICBnLmYoKTsKICAgIGguZigpOwp9Cg==


More information about the Gcc-bugs mailing list