I have been told by experienced shader developers that while Cg is great for simple shaders, it is advised to do GLSL/HLSL directly for advanced shaders, due to bugs in resultant shader code.
What specifically are the limits and/or known problems with using Cg... are there certain things it just can't do, or is it a case of try and see... work with Cg until problems arise?