This is an archive of the discontinued LLVM Phabricator instance.

SemaExceptionSpec: ensure old/new specs are both parsed and evaluated when comparing
AbandonedPublic

Authored by elsteveogrande on Aug 18 2018, 6:49 PM.

Details

Reviewers
rsmith
Summary

Before checking that the overriding definition of a method is not more lax than the overridden one, ensure the exception spec is parsed, and also evaluated.

Test case by Andrew Gallagher!

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

Diff Detail

Event Timeline

elsteveogrande created this revision.Aug 18 2018, 6:49 PM
elsteveogrande edited the summary of this revision. (Show Details)Aug 18 2018, 6:50 PM
elsteveogrande edited the summary of this revision. (Show Details)
vitaut added a subscriber: vitaut.Aug 19 2018, 7:33 AM
vitaut added inline comments.
lib/Sema/SemaExceptionSpec.cpp
915

Did you mean Old here?

elsteveogrande marked an inline comment as done.Aug 19 2018, 9:18 AM
elsteveogrande added inline comments.
lib/Sema/SemaExceptionSpec.cpp
915

facepalm, haha. Thanks @vitaut ! :)

elsteveogrande marked an inline comment as done.

fix dopey copy-paste error. Tested again with ninja check-clang-modules

elsteveogrande planned changes to this revision.Aug 19 2018, 2:12 PM
elsteveogrande marked an inline comment as done.

This broke some tests. It fixes the test case added here under test/Modules but causes errors in test/CodeGenCXX and other dirs.

elsteveogrande abandoned this revision.Sep 4 2018, 7:09 AM

Abandoning in favor of https://reviews.llvm.org/D51608 which works better.