If definition of default function argument uses itself, clang crashed,
because corresponding function parameter is not associated with the default
argument yet. With this fix clang emits appropriate error message.
This change fixes PR28105.
Paths
| Differential D21301
Detect recursive default argument definition ClosedPublic Authored by sepavloff on Jun 13 2016, 11:06 AM.
Details Summary If definition of default function argument uses itself, clang crashed, This change fixes PR28105.
Diff Detail
Event Timelinesepavloff updated this object. This revision is now accepted and ready to land.Jun 13 2016, 11:13 AM Closed by commit rL272623: Detect recursive default argument definition (authored by sepavloff). · Explain WhyJun 13 2016, 8:02 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 60644 cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaExpr.cpp
cfe/trunk/test/SemaCXX/default2.cpp
|