[polly] r281039 - Add namespace specifier before nullptr_t

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 07:58:38 PDT 2016


Thank you for the fix.

For some reason, I didn't get that error with either gcc 5.4 nor VC14.

Michael

2016-09-09 14:31 GMT+02:00 Tobias Grosser via llvm-commits
<llvm-commits at lists.llvm.org>:
> Author: grosser
> Date: Fri Sep  9 07:31:38 2016
> New Revision: 281039
>
> URL: http://llvm.org/viewvc/llvm-project?rev=281039&view=rev
> Log:
> Add namespace specifier before nullptr_t
>
> This fixes the following compile time errors:
>
>   error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'
>
> Modified:
>     polly/trunk/include/polly/Support/GICHelper.h
>
> Modified: polly/trunk/include/polly/Support/GICHelper.h
> URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/GICHelper.h?rev=281039&r1=281038&r2=281039&view=diff
> ==============================================================================
> --- polly/trunk/include/polly/Support/GICHelper.h (original)
> +++ polly/trunk/include/polly/Support/GICHelper.h Fri Sep  9 07:31:38 2016
> @@ -253,7 +253,7 @@ private:
>
>  public:
>    IslPtr() : Obj(nullptr) {}
> -  /* implicit */ IslPtr(nullptr_t That) : IslPtr() {}
> +  /* implicit */ IslPtr(std::nullptr_t That) : IslPtr() {}
>
>    /* implicit */ IslPtr(const ThisTy &That) : IslPtr(That.Obj, false) {}
>    /* implicit */ IslPtr(ThisTy &&That) : IslPtr(That.Obj, true) {
> @@ -320,7 +320,7 @@ private:
>
>  public:
>    NonowningIslPtr() : Obj(nullptr) {}
> -  /* implicit */ NonowningIslPtr(nullptr_t That) : NonowningIslPtr() {}
> +  /* implicit */ NonowningIslPtr(std::nullptr_t That) : NonowningIslPtr() {}
>
>    /* implicit */ NonowningIslPtr(const IslPtr<T> &That)
>        : NonowningIslPtr(That.keep()) {}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list