[Bug c++/59070] Captured object is being moved from the lambda on returning it.

2013-11-10 Thread sir_nawaz959 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59070 Sarfaraz Nawaz changed: What|Removed |Added Status|RESOLVED|NEW Resolution|WORKSFORME

[Bug c++/59070] New: Captured object is being moved from the lambda on returning it.

2013-11-10 Thread sir_nawaz959 at yahoo dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sir_nawaz959 at yahoo dot com I'm using GCC 4.8.1 Here is the code which reproduces this bug: std::vector items {"default"}; auto add = [=](std::strin

[Bug libstdc++/58924] Non-member invocation of overload of operator<< when the first argument is a temporary of type std::stringstream

2013-10-30 Thread sir_nawaz959 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58924 --- Comment #5 from Sarfaraz Nawaz --- (In reply to Fanael from comment #1) > That's expected behavior AFAIU. 'operator<<(basic_ostream&& > os, const T& x)' is a better match for const char[K] than > 'basic_ostream& basic_ostream::operator<<(const

[Bug c++/58924] New: Non-member invocation of overload of operator<< when the first argument is a temporary of type std::stringstream

2013-10-30 Thread sir_nawaz959 at yahoo dot com
ersion: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sir_nawaz959 at yahoo dot com I'm using GCC-4.8.1 in C++11 Mode. Consider this code, #include #include

[Bug libstdc++/56336] New: Buggy implementation of stoi, stol, stoll

2013-02-14 Thread sir_nawaz959 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56336 Bug #: 56336 Summary: Buggy implementation of stoi, stol, stoll Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal

[Bug c++/52688] static local variable can accessed from local class of function template

2012-03-26 Thread sir_nawaz959 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52688 --- Comment #6 from Sarfaraz Nawaz 2012-03-26 15:54:46 UTC --- (In reply to comment #5) > (In reply to comment #0) > > While gcc-4.5.1 compiles fine this code > > Are you sure? I get the same error with 4.1.2, 4.4.3, 4.5.2, 4.6.3 and 4.7.0 > >

[Bug c++/52688] static local variable can accessed from local class of function template

2012-03-24 Thread sir_nawaz959 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52688 --- Comment #3 from Sarfaraz Nawaz 2012-03-24 15:25:22 UTC --- (In reply to comment #2) > http://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition Jonathan, that is a different case. A static (const or otherwise) member of a cl

[Bug c++/52688] New: static local variable can accessed from local class of function template

2012-03-23 Thread sir_nawaz959 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52688 Bug #: 52688 Summary: static local variable can accessed from local class of function template Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONF