public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11617] New: [3.4 regression] g++ does not report missing member functions
@ 2003-07-21 16:41 reichelt at gcc dot gnu dot org
  2003-07-21 16:46 ` [Bug c++/11617] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-07-21 16:41 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] g++ does not report missing member
                    functions
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: critical
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org

The following invalid code is accepted by mainline
(but not by gcc 2.95.x - 3.3):

----------------------------------------------
template <int> struct A
{
    static const int i=0;
};

int baz() { return A<0>::i; }

struct B {};

template <typename T> struct C
{
    virtual void bar() const { T::foo(); } // invalid for T=B, since B has no
member foo.
};

C<B> c;
-----------------------------------------

According to Phil's snapshot collection the regression was introduced
between 2003-07-14 and 2003-07-15.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-07-25 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-21 16:41 [Bug c++/11617] New: [3.4 regression] g++ does not report missing member functions reichelt at gcc dot gnu dot org
2003-07-21 16:46 ` [Bug c++/11617] " reichelt at gcc dot gnu dot org
2003-07-21 17:03 ` bangerth at dealii dot org
2003-07-23 13:07 ` nathan at gcc dot gnu dot org
2003-07-23 23:18 ` janis187 at us dot ibm dot com
2003-07-25 16:36 ` cvs-commit at gcc dot gnu dot org
2003-07-25 16:44 ` nathan at gcc dot gnu dot org

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).