summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/complex-imag.c
Commit message (Collapse)AuthorAgeFilesLines
* PR15132: Replace "address expression must be an lvalue or a functionRichard Smith2013-02-021-2/+2
| | | | | | | | | | | | | | designator" diagnostic with more correct and more human-friendly "cannot take address of rvalue of type 'T'". For the case of & &T::f, provide a custom diagnostic, rather than unhelpfully saying "cannot take address of rvalue of type '<overloaded function type>'". For the case of &array_temporary, treat it just like a class temporary (including allowing it as an extension); the existing diagnostic wording for the class temporary case works fine. llvm-svn: 174262
* Fix wrong-code bug: __imag on a scalar lvalue should produce a zero rvalue,Richard Smith2012-02-181-0/+29
rather than an lvalue referring to the scalar. llvm-svn: 150889
OpenPOWER on IntegriCloud