Skip to content
  1. Sep 16, 2010
  2. Sep 15, 2010
  3. Sep 14, 2010
  4. Sep 13, 2010
  5. Sep 12, 2010
  6. Sep 11, 2010
    • Douglas Gregor's avatar
      When parsing default function arguments, do not mark any declarations · 8a01b2a3
      Douglas Gregor authored
      used in the default function argument as "used". Instead, when we
      actually use the default argument, make another pass over the
      expression to mark any used declarations as "used" at that point. This
      addresses two kinds of related problems:
      
        1) We were marking some declarations "used" that shouldn't be,
        because we were marking them too eagerly.
        2) We were failing to mark some declarations as "used" when we
        should, if the first time it was instantiated happened to be an
        unevaluated context, we wouldn't mark them again at a later point.
      
      I've also added a potentially-handy visitor class template
      EvaluatedExprVisitor, which only visits the potentially-evaluated
      subexpressions of an expression. I bet this would have been useful for
      noexcept...
      
      Fixes PR5810 and PR8127.
      
      llvm-svn: 113700
      8a01b2a3
    • John McCall's avatar
      db76892e
  7. Sep 10, 2010
  8. Sep 09, 2010
Loading