Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

[Bug report] Spurious #2651 warning for deprecating a "using" alias.

$
0
0

Dear all,

trying to deprecate a "using" alias as in

 using foo [[deprecated]] = int;
 
 int main()
 {
   foo f = 1;
 };

gives me

test-deprecate.cc(1): warning #2651: attribute does not apply to any entity
  using foo [[deprecated]] = int;
              ^

test-deprecate.cc(5): warning #1478: type "foo" (declared at line 1) was declared deprecated
    foo f = 1;
        ^

using ICC16, ICC17, ICC18 and ICC19. The deprecation is correctly detected by warning #1478 so #2651 is spurious here.

Best,

Daniel


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>