Closed Quuxplusone closed 14 years ago
Attached 000.cc
(3417 bytes, application/octet-stream): test case
_This bug has been marked as a duplicate of bug 5890_
I think this should be fixed now, but I get:
b.cc:79:15: error: no member named 'init' in 'class basic_iostream<char, struct
char_traits<char> >'
{ this->init(__sb); }
~~~~ ^
b.cc:103:24: note: in instantiation of member function 'basic_iostream<char,
struct char_traits<char> >::basic_iostream' requested here
: basic_ios<char>(), basic_iostream<char>(0),
^
on the testcase so I can't confirm.
(In reply to comment #2)
> I think this should be fixed now, but I get:
>
> b.cc:79:15: error: no member named 'init' in 'class basic_iostream<char,
struct
> char_traits<char> >'
> { this->init(__sb); }
> ~~~~ ^
> b.cc:103:24: note: in instantiation of member function 'basic_iostream<char,
> struct char_traits<char> >::basic_iostream' requested here
> : basic_ios<char>(), basic_iostream<char>(0),
> ^
> on the testcase so I can't confirm.
>
Interesting. Adding a init() declaration with the appropriate signature makes
the test work as intended. Not sure why we didn't diagnose the missing init()
before... perhaps we were asserting before init() got instantiated?
000.cc
(3417 bytes, application/octet-stream)