This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10118] Bad diagnostic with cast in template argument expression


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-05 02:44 -------
this is semi-fixed on the mainline (get rid of the "()" and it would be considered fixed, unless 
someone says otherwise. )
pr1011.cc:7: error: `A::foo()' cannot appear in a constant-expression
pr1011.cc:7: error: a casts to a type other than an integral or enumeration type cannot appear in a 
constant-expression
pr1011.cc:7: error: template argument 2 is invalid
pr1011.cc:7: error: expected constructor, destructor, or type conversion

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10118


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]