public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33911]  New: attribute deprecated vs. templates
@ 2007-10-26 15:08 bkoz at gcc dot gnu dot org
  2007-10-26 16:08 ` [Bug c++/33911] " pcarlini at suse dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2007-10-26 15:08 UTC (permalink / raw)
  To: gcc-bugs

In the following example, class "foo" gets a deprecated warning, but a similar
class template "goo" does not. Typedefs constructed with foo or goo get an
error.

What up?


struct foo
{
  int i;
} __attribute__ ((__deprecated__));

template<typename _Tp>
struct goo
{
  int i;
} __attribute__ ((__deprecated__));

typedef foo foo_type __attribute__ ((__deprecated__));
typedef goo<int> goo_type __attribute__ ((__deprecated__));


int main()
{
  foo f1;
  goo<int> f2;

  foo_type f3;
  goo_type f4;

  return 0;
}


I have a patch to mark the C++0x bits deprecated, but it's not working because
of this issue.


-- 
           Summary: attribute deprecated vs. templates
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org
  GCC host triplet: all


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


^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <bug-33911-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2022-03-02 15:51 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-26 15:08 [Bug c++/33911] New: attribute deprecated vs. templates bkoz at gcc dot gnu dot org
2007-10-26 16:08 ` [Bug c++/33911] " pcarlini at suse dot de
2007-12-20 14:33 ` niemayer at isg dot de
2008-01-04 22:57 ` jason at redhat dot com
2008-05-02 21:41 ` jason at gcc dot gnu dot org
2008-12-28  3:25 ` pinskia at gcc dot gnu dot org
2009-11-05 23:09 ` jason at gcc dot gnu dot org
     [not found] <bug-33911-4@http.gcc.gnu.org/bugzilla/>
2012-12-01 22:12 ` paolo.carlini at oracle dot com
2012-12-02  8:16 ` victor at enise dot org
2012-12-02  9:57 ` paolo.carlini at oracle dot com
2012-12-02 12:39 ` redi at gcc dot gnu.org
2013-10-01  0:06 ` eraman at google dot com
2013-10-03 17:39 ` eraman at gcc dot gnu.org
2014-11-11 14:18 ` redi at gcc dot gnu.org
2014-11-11 14:25 ` redi at gcc dot gnu.org
2014-11-11 17:52 ` jason at gcc dot gnu.org
2014-11-12 10:33 ` redi at gcc dot gnu.org
2014-11-13  3:06 ` redi at gcc dot gnu.org
2014-11-17 22:10 ` jason at gcc dot gnu.org
2022-03-02 15:51 ` ldionne.2 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).