r363086 - For DR712: store on a DeclRefExpr whether it constitutes an odr-use.

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 11 16:20:49 PDT 2019


The new assert is firing across Chromium, please fix or revert. This is a
reduced test case:

int a;
struct Foo {
  template <typename b, typename c = decltype(a)> void operator()(b, c = a);
};
Foo d;
bool e;
decltype(d(e)) gv;

This causes the "missing non-odr-use marking for unevaluated decl ref"
assertion on SemaExpr.cpp:16227 to fire.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190611/f5e555bb/attachment.html>


More information about the cfe-commits mailing list