From: Chris Lattner Date: Thu, 21 Feb 2008 01:32:57 +0000 (+0000) Subject: add a fixme. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bde71844358985648a0f5dc6a3b62092ae4be35a;p=clang add a fixme. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47421 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaType.cpp b/Sema/SemaType.cpp index 4b06e6adad..f717b4139a 100644 --- a/Sema/SemaType.cpp +++ b/Sema/SemaType.cpp @@ -186,7 +186,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) { break; case DeclaratorChunk::Reference: if (const ReferenceType *RT = T->getAsReferenceType()) { - // C++ 8.3.2p4: There shall be no references to references ... + // C++ 8.3.2p4: There shall be no references to references. Diag(D.getIdentifierLoc(), diag::err_illegal_decl_reference_to_reference, D.getIdentifier() ? D.getIdentifier()->getName() : "type name"); @@ -196,6 +196,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) { T = Context.getReferenceType(T); + // FIXME: Handle Ref.Restrict! + // See if there are any attributes on the pointer that apply to it. if (AttributeList *AL = DeclType.Ref.AttrList) DeclType.Ref.AttrList = ProcessTypeAttributes(T, AL);