[cfe-dev] Better error output when template needed before dependent name?

Dave Johansen via cfe-dev cfe-dev at lists.llvm.org
Thu Dec 10 14:29:54 PST 2015


Here's the minimal reproducer that I could come up with:

template<int N>
struct test_template
{
  template<int N2>
  void do_nothing(int value)
  {
    (void)value;
  }
};

template<int N>
void do_test()
{
  test_template<N> t;
  t.do_nothing<N>(0);
}

int main()
{
  do_test<2>();

  return 0;
}


On Thu, Dec 10, 2015 at 3:04 PM, Nikola Smiljanic <popizdeh at gmail.com>
wrote:

> Can you provide a minimal example that reproduces this error?
>
> On Fri, Dec 11, 2015 at 5:03 AM, Dave Johansen via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> https://llvm.org/bugs/show_bug.cgi?id=13566
>> https://llvm.org/bugs/show_bug.cgi?id=18995
>> I was working on some code and confused by the error output that's
>> documented in the above bugzillas, so I was curious if there's been any
>> work on improving this error output?
>> Thanks,
>> Dave
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151210/c2408d5d/attachment.html>


More information about the cfe-dev mailing list