News for hackers. Stuff that matters.
Re:Optimizing C++ Const Objects in LLVM by jjuhl on Sunday December 27, 2015 @10:59AM (#10797764)
Well, they are actually trying to extract some meaning from it for optimization purposes, so I wouldn't call it 'ignored'.

'inline' would be a better example of another "ignored" keyword.

Re:Optimizing C++ Const Objects in LLVM by ambrop7 on Sunday December 27, 2015 @02:36PM (#10798470)
What useful meaning is there for optimization purpuses?

As far as I know, there is no meaning in pointer-to-const other than it must not be used directly to modify the stored value (if it is you get a compile error). It is always valid from the perspective of language semantics to cast-away the const and modify the pointed-to object, as long as the object is not itself read-only. So, to my knowledge, they could not make any additional assumptions based on pointer-to-const, though they could use it as a hint to look for a possible optimization.

Re:Optimizing C++ Const Objects in LLVM by jjuhl on Monday December 28, 2015 @07:56AM (#10800907)
Did you read the link? It's all explained there.