https://bugs.llvm.org/show_bug.cgi?id=47435

            Bug ID: 47435
           Summary: Missing diagnostic when using dependent base class via
                    template alias with dummy parameter.
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++17
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Consider the following c++ program:

  class A
  {
      protected:
          int x;
  };

  template<typename X>
  using B = A;

  template<typename T>
  class C : public B<T>
  {
      public:
          void f()
          {
              x = 0;
          }
  };

  int main()
  {
  }

Compile it with "-std=c++17 -pedantic-errors".

Since the base class is dependent the name lookup of x should fail and an error
message should be outputed during compilation, but no error message was
outputed. Note that gcc correctly outputs an error message.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to