[llvm-bugs] [Bug 26512] Repeatable Compiler crash on v3.7.1

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 10 11:35:50 PST 2016


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #3 from Reid Kleckner <rnk at google.com> ---
This appears to be different. It has to do with dependent types sneaking
through to codegen via templated friend functions (ew). Here's what I got from
reduction:

struct A {
  template <class, bool> class B {
    template <class r_colony_allocator_type, bool r_is_const,
              class distance_type>
    friend void advance(B<r_colony_allocator_type, r_is_const> &,
                        distance_type);
  };
  template <class r_colony_allocator_type, bool r_is_const, class
distance_type>
  friend void advance(B<r_colony_allocator_type, r_is_const> &, distance_type)
{
    distance_type a;
  }
};
int main() {
  A::B<int, false> b;
  advance(b, 0);
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160210/e5d64755/attachment.html>


More information about the llvm-bugs mailing list