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++/8852: can't create a vector of multiple ifstreams.


>Number:         8852
>Category:       c++
>Synopsis:       can't create a vector of multiple ifstreams.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 06 14:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Yoo-hee Shin
>Release:        2.95.2
>Organization:
>Environment:
sparc-sun-solaris2.6
>Description:
I cannot create a vector of ifstream.
>How-To-Repeat:
#include <vector>
#include <fstream>

main() {
    std::vector<ifstream> i(3);
}
>Fix:
It works:
ifstream i[3];
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cc"

I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGZzdHJlYW0+CgptYWluKCkgewogICAgc3RkOjp2
ZWN0b3I8aWZzdHJlYW0+IGkoMyk7Cn0K


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