[cfe-commits] [libcxx] r145624 - in /libcxx/trunk: include/ lib/ src/
Jonathan Sauer
jonathan.sauer at gmx.de
Mon Jan 23 09:01:05 PST 2012
Hello,
> [...]
> I was just about to change this one item when it occurred to me that this *might* be a clang error. I am far from sure though. 7.1.5p8 is discussing *non-static* member functions. The code is showing a *static* member function. I'm poking around in the standard but haven't yet found a clarification concerning static member functions. But there seems to be some similar code in 26.5.3 [rand.eng].
I think 7.1.5p8 is based on 7.1.5p3, where the general requirements for a constexpr function are laid down, so
7.1.5p3 is talking about static member functions. And you are correct: A static member function does not require
its class to be a literal type (i.e. one with constexpr constructors and a trivial destructor).
And you are correct, too, that this is a clang error. An error, in fact, that was fixed in r148090. So please
forget everything I wrote ;-)
I'm sorry for the noise,
Jonathan
More information about the cfe-commits
mailing list