https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63179
--- Comment #2 from Pavel ---
Sorry.
++
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
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";}
}
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
++
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59554
--- Comment #3 from Pavel ---
Sorry, I am wrong. Gcc work right.
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
++
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