https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90260

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-04-29
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
It's unsupported feature, we should provide a reasonable error message.
Note that clang++ also rejects that:

$ clang++ pr90260.cc
pr90260.cc:7:39: error: attribute 'target' multiversioned functions do not yet
support function templates
__attribute__ ((target("default"))) T foo(T num) {
                                      ^
1 error generated.

Reply via email to