ARudik / phc

Automatically exported from code.google.com/p/phc
0 stars 0 forks source link

src/lib/List.h insert #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --with-php=/usr
2. make

What is the expected output? What do you see instead?

In file included from ./src/generated/AST_transform.h:9:0,
                 from src/ast_to_hir/AST_lower_expr.h:12,
                 from src/ast_to_hir/AST_lower_expr.cpp:9:
./src/lib/List.h: In instantiation of 'void List<_Tp, 
_Alloc>::push_back_all(List<_Tp, _Alloc>*) [with _Tp = AST::Statement*; _Alloc 
= gc_allocator<AST::Statement*>]':
src/ast_to_hir/AST_lower_expr.cpp:114:27:   required from here
./src/lib/List.h:170:45: error: 'insert' was not declared in this scope, and no 
declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
   insert(end(), other->begin(), other->end());
                                             ^
./src/lib/List.h:170:45: note: declarations in dependent base 
'std::list<AST::Statement*, gc_allocator<AST::Statement*> >' are not found by 
unqualified lookup
./src/lib/List.h:170:45: note: use 'this->insert' instead
Makefile:1967: recipe for target 'AST_lower_expr.lo' failed
make[2]: *** [AST_lower_expr.lo] Error 1
make[2]: Leaving directory '/home/darko/Downloads/phc-read-only'
Makefile:3446: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/darko/Downloads/phc-read-only'
Makefile:1413: recipe for target 'all' failed
make: *** [all] Error 2

What version of the product are you using? On what operating system?

archlinux
php-5.5.6 (php-embed package)
gcc-4.8.2
glibc 2.18
Checked out revision 3420.

Please provide any additional information below.

after adding this-> to insert it compiled
but next issue came up, will create a new issue

have you moved away from github again?
would've been easier, at least for me to submit a pull request

Original issue reported on code.google.com by i...@icod.de on 15 Nov 2013 at 2:48