[Bug c++/63179] Virtuality is not working

2014-09-04 Thread isak50 at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63179 --- Comment #2 from Pavel --- Sorry.

[Bug c++/63179] New: Does not work virtuality

2014-09-04 Thread isak50 at mail dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: isak50 at mail dot ru // g++ 1.cpp -O2 -Wall -std=c++11 -Wall #include struct Base{ virtual void f() {printf("base\n");} }; struct Child : Base{ void f()override {printf("child\n");} }; alignas(Child) char buf[sizeo

[Bug other/61549] New: Error when linking with shared libraries

2014-06-18 Thread isak50 at mail dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: isak50 at mail dot ru // os - linux debian //-- /usr/local/lib/1.cpp #include struct S { int val; S() {val=1; std::cout << "1::constr\n";} ~S() {std::cout << "1::destr\n";} }

[Bug c++/61327] Problem with friend template object

2014-05-27 Thread isak50 at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61327 --- Comment #2 from Pavel --- // Clang compiles without errors. class B { protected: void f() {} }; template struct S; template struct S{ template static void caller(T *p) {p->B::f();} // error: 'void B::f()' is protected //s

[Bug c++/61327] New: Problem with friend template object

2014-05-26 Thread isak50 at mail dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: isak50 at mail dot ru // Although struct Call_check is a friend for the Comp, the compiler reports // that Cnd1::ch() is protected. #include #include template struct Call_check; template struct Call_check<_Type> { te

[Bug c++/59554] Errors with const and volatile in templates.

2013-12-18 Thread isak50 at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59554 --- Comment #3 from Pavel --- Sorry, I am wrong. Gcc work right.

[Bug c++/59554] Errors with const and volatile in templates.

2013-12-18 Thread isak50 at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59554 --- Comment #2 from Pavel --- if i edit code so: template void show(_T t) { *t = nullptr;// added printf("--_T\n"); mis_const<_T>::ch(); mis_volatile<_T>::ch(); mis_pointe

[Bug c++/59554] New: Errors with const and volatile in templates.

2013-12-18 Thread isak50 at mail dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: isak50 at mail dot ru Created attachment 31477 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31477&action=edit source.ii // templates mis_... don't find out a const and a volatile. Also std tools of