[Bug c++/57493] New: Incorrect name lookup for range loop
ppluzhnikov at google dot com
gcc-bugzilla@gcc.gnu.org
Sat Jun 1 02:08:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57493
Bug ID: 57493
Summary: Incorrect name lookup for range loop
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppluzhnikov at google dot com
This appears to have been broken since 4.6.
Test case:
#include <vector>
int main() {
std::vector<int> var;
for (int var : var) {
}
}
Using trunk at r199570:
g++ -c b.cc -std=c++11
b.cc: In function ‘int main()’:
b.cc:5:17: error: no matching function for call to ‘begin(int&)’
for (int var : var) {
^
b.cc:5:17: note: candidates are:
...
Google ref: b/9229787
More information about the Gcc-bugs
mailing list