[Bug c++/68209] C++11 code compiled without -std=c++11 but doesn't work as expected

2015-11-04 Thread mirzayanovmr at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68209 --- Comment #2 from MikeMirzayanov --- Right now code written as C++11 can be unintentionally compiled in C++98-mode and it leads to incorrect behavior of the code. What is the reason why it compiled on C++98? I expect that it is incorrect synta

[Bug c++/68209] New: C++11 code compiled without -std=c++11 but doesn't work as expected

2015-11-04 Thread mirzayanovmr at gmail dot com
ormal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Target Milestone: --- Tried on g++.EXE (tdm-1) 5.1.0 and g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4). This code compiled successfully with command

[Bug c++/68203] New: Аbout infinite compilation time on struct with nested array of pairs with -std=c++11

2015-11-03 Thread mirzayanovmr at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Target Milestone: --- Tried on g++.EXE (tdm-1) 5.1.0 and g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) Compile the following minimal

[Bug c++/66096] Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG

2015-05-10 Thread mirzayanovmr at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66096 --- Comment #1 from MikeMirzayanov --- The code is: #define _GLIBCXX_DEBUG #include #include using namespace std; map > > q; int main(int argc, char* argv[]) { set can; can.insert(1); }

[Bug c++/66096] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG

2015-05-10 Thread mirzayanovmr at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Target Milestone: --- The following code unexpectedly fails with error: This application has requested the Runtime to terminate it in an unusual way

[Bug c++/66095] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG

2015-05-10 Thread mirzayanovmr at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Target Milestone: --- Created attachment 35515 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35515&action=edit Code to reproduce a b

[Bug tree-optimization/60766] New: Wrong optimization with -O2

2014-04-04 Thread mirzayanovmr at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Created attachment 32546 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32546&action=edit Compile with -O2 and input 9 Compile the following code with -O2: ~ #include #include #

[Bug c++/58417] New: Incorrect optimization

2013-09-13 Thread mirzayanovmr at gmail dot com
: unassigned at gcc dot gnu.org Reporter: mirzayanovmr at gmail dot com Created attachment 30820 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30820&action=edit Compile it with "g++ -O2 a.cpp" and run. It will output 0 instead of 10. The following code writes 0 (b