Summary: | Lambda arguments should not have a default value | ||
---|---|---|---|
Product: | gcc | Reporter: | Ruben Van Boxem <vanboxem.ruben> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | trivial | ||
Priority: | P3 | ||
Version: | 4.6.1 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Ruben Van Boxem
2011-06-08 16:40:23 UTC
If you get a warning with -pedantic that usually means it's a G++ extension. If you don't want the extension use -pedantic-errors so it is rejected I compiled with -std=c++0x, so GCC extensions should be turned off. No, that's not how it works, read the manual for -std and -pedantic. Ok, my mistake, I compiled with -std=c++0x -pedantic, which (as I'm reading in the manual now) turns off GCC extensions and makes program adhere to strict standards... But emits warnings only. I should use -pedantic-errors then. OK. That works as it should in this case. Thanks. |