Bug ID: 84820
           Summary: [6/7/8 Regression]  Bogus pointer-to-member accepted
                    within template
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot
          Reporter: reichelt at gcc dot
  Target Milestone: ---

The following invalid code snippet is wrongly accepted since GCC 4.9.0:

struct A {};

template<int> struct B : A

B<0> b;

Before, the code was correctly rejected: In constructor 'B<<anonymous> >::B()': error: invalid use of qualified-name 'A::foo'

Reply via email to