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]

Re: egcs bug


In article <9902041313.AA01004@borges.upm.es> you write:
>
>// begin code
>#include <vector>
>
>class foo {};
>
>main() {
>    vector<foo> foo_vector;
>    unsigned int size=foo_vector->size();
>}
>// end code
>
>g++ -v:
>gcc version egcs-2.91.14 980315 (gcc-2.8.0 release)
>
>g++ test.cc:
>test.cc: In function 'int main()':
>test.cc:7: Internal compiler error.

Fixed in recent snapshots, where egcs correctly says:
test.C: In function `int main()':
test.C:8: base operand of '->' has non-pointer type `vector<foo,allocator<foo> >'



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