public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Jason Merrill <jason@prospero.cambridge.redhat.com>
To: gcc-gnats@gcc.gnu.org
Subject: c++/5387: g++ fails to catch use of private type in template
Date: Tue, 15 Jan 2002 05:16:00 -0000	[thread overview]
Message-ID: <200201151313.g0FDDER21547@prospero.cambridge.redhat.com> (raw)


>Number:         5387
>Category:       c++
>Synopsis:       g++ fails to catch use of private type in template
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 15 05:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jason Merrill
>Release:        unknown-1.0
>Organization:
redhat
>Environment:
System: Linux prospero.cambridge.redhat.com 2.4.13-0.5 #1 Sat Nov 3 15:08:02 EST 2001 i686 unknown
Architecture: i686

	
>Description:
	In the testcase below, g++ fails to diagnose the use of B::X in the definition
of A<B>::x.
	
>How-To-Repeat:

  template <class T> struct A {
	  typename T::X x;
	  int f() { return T::i; }
  };

  class B {
	  typedef int X;
	  static int i;
  };

  int main()
  {
	  A<B> ab;
	  ab.f();
  }

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-01-15 13:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-15  5:16 Jason Merrill [this message]
2002-01-15  5:36 Andrew Pinski
2002-05-26  8:36 lerdsuwa
2002-05-26 10:16 lerdsuwa
2002-07-17  7:26 lerdsuwa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200201151313.g0FDDER21547@prospero.cambridge.redhat.com \
    --to=jason@prospero.cambridge.redhat.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).