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++/6803: Default copy constructor problem in GCC v3.1



>Number:         6803
>Category:       c++
>Synopsis:       Default copy constructor problem in GCC v3.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 24 12:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Anton Helm
>Release:        3.1
>Organization:
>Environment:
DJGPP
>Description:
Code compiles with GCC v2.95.2, v2.95.3, 
v3.0.2, v3.0.3 and v3.0.4 but not with v3.1.

copy_problem.cpp: In copy constructor `QQ::QQ(const QQ&)':
copy_problem.cpp:57: invalid conversion from `const RR*' to `long long int'
copy_problem.cpp:57:   initializing argument 1 of `RR::RR(long long int)'
copy_problem.cpp: In function `int main()':
copy_problem.cpp:57:   initializing temporary from result of `QQ::QQ(const RR&
>How-To-Repeat:
compile with g++ v3.1, e.g.
g++ copy_problem.cpp
>Fix:
?
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="copy_problem.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="copy_problem.cpp"

Y2xhc3MgUVE7DQoNCmNsYXNzIFJSDQp7IA0KcHVibGljOg0KICBzaG9ydCB4eDsNCiAgICAgICAg
UlIoY29uc3QgbG9uZyBsb25nIGkpOw0KICAgICAgICBSUigpOw0KICAgICAgICBSUihjb25zdCBS
UiYgZik7DQogICAgICAgIH5SUigpOw0KfTsNCg0KY2xhc3MgUVENCnsNCnB1YmxpYzoNCiAgUlIg
ICAgeXlbNF1bNF07DQogICAgICAgIFFRKCk7DQogICAgICAgIFFRKGNvbnN0IFJSJiBmKTsNCiAg
ICAgICAgflFRKCk7DQp9Ow0KDQppbmxpbmUgUlI6OlJSKGNvbnN0IGxvbmcgbG9uZyBpKQ0Kew0K
ICB4eCA9IChzaG9ydClpOw0KfQ0KDQppbmxpbmUgUlI6OlJSKCkge3h4ID0gMDt9DQppbmxpbmUg
UlI6OlJSKGNvbnN0IFJSJiBmKSB7eHggPSBmLnh4O30NCmlubGluZSBSUjo6flJSKCkge30NCg0K
aW5saW5lIFFROjpRUSgpDQp7DQogIGZvcihpbnQgaT0wO2k8NDtpKyspDQogIHsNCiAgICBmb3Io
aW50IGo9MDtqPDQ7aisrKQ0KICAgIHsNCiAgICAgIHl5W2ldW2pdID0gMDsNCiAgICB9DQogIH0N
Cn0NCg0KaW5saW5lIFFROjpRUShjb25zdCBSUiAmZikNCnsNCiAgZm9yKGludCBpPTA7aTw0O2kr
KykNCiAgew0KICAgIGZvcihpbnQgaj0wO2o8NDtqKyspDQogICAgew0KICAgICAgeXlbaV1bal0g
PSBmOw0KICAgIH0NCiAgfQ0KfQ0KDQppbmxpbmUgUVE6On5RUSgpe30NCg0KaW50IG1haW4oKQ0K
ew0KICBRUSB4ICA9IFJSKDEyMyk7DQogIFFRICp5ID0gJng7DQogIFFRIHogID0gKnk7DQoNCiAg
cmV0dXJuIHgueXlbM11bM10ueHg7DQp9DQo=


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