Skip to content
  1. Jul 16, 2011
  2. Jul 15, 2011
  3. Jul 14, 2011
    • Richard Smith's avatar
      PR10359: Template declarations which define classes are not permitted to also... · 7b8c3c91
      Richard Smith authored
      PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this:
      
        template<typename T> struct S { } f() { return 0; }
      
      This case now produces a missing ';' diagnostic, since that seems like a much more likely error than an attempt to declare a function or variable in addition to the class template.
      
      Treat this 
      
      llvm-svn: 135195
      7b8c3c91
    • Argyrios Kyrtzidis's avatar
      [arcmt] Emit an error for unused -autorelease messages. · 84b528f3
      Argyrios Kyrtzidis authored
      An unused autorelease is badness. If we remove it the receiver
      will likely die immediately while previously it was kept alive
      by the autorelease pool. This is bad practice in general, so leave it
      and emit an error to force the user to restructure his code.
      
      rdar://9599884
      
      llvm-svn: 135193
      84b528f3
    • Sebastian Redl's avatar
      For C++11, do more checking of initializer lists up-front, enabling some... · 9c61809c
      Sebastian Redl authored
      For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either.
      This is a first baby step towards supporting generalized initializer lists. This also removes an aggregate
      test case that was just plain wrong, assuming that non-aggregates couldn't be initialized with initializer lists
      in C++11 mode.
      
      llvm-svn: 135177
      9c61809c
Loading