diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-18 14:32:15 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-07-18 14:32:15 +0000 |
commit | 726212f41bac77dc7f3352bc7047615fa0cd9e58 (patch) | |
tree | 8ee07375e36b17ddfa5c75f87cc21ff1a7f7d70f /lib/Sema/SemaType.cpp | |
parent | 089962112ebbb730dfe18c104566bcf9810b341e (diff) |
Enhance testing of overriding exception specs for inaccessible base exceptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 8195aba967..036ccc8739 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -1294,7 +1294,7 @@ bool Sema::CheckExceptionSpecSubset(unsigned DiagID, unsigned NoteID, bool SubIsClass = CanonicalSubT->isRecordType(); CanonicalSubT.setCVRQualifiers(0); - BasePaths Paths(/*FindAmbiguities=*/true, /*RecordPaths=*/false, + BasePaths Paths(/*FindAmbiguities=*/true, /*RecordPaths=*/true, /*DetectVirtual=*/false); bool Contained = false; @@ -1332,7 +1332,8 @@ bool Sema::CheckExceptionSpecSubset(unsigned DiagID, unsigned NoteID, if (Paths.isAmbiguous(CanonicalSuperT)) continue; - // FIXME: Check base access. Don't forget to enable path recording. + if (FindInaccessibleBase(CanonicalSubT, CanonicalSuperT, Paths, true)) + continue; Contained = true; break; |