public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8929: g++ 3.2 violates 14.7.3, p5
@ 2002-12-13 12:53 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-13 12:53 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sebor

Synopsis: g++ 3.2 violates 14.7.3, p5

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Dec 13 12:52:59 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8929


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

* c++/8929: g++ 3.2 violates 14.7.3, p5
@ 2002-12-13  9:36 sebor
  0 siblings, 0 replies; 2+ messages in thread
From: sebor @ 2002-12-13  9:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8929
>Category:       c++
>Synopsis:       g++ 3.2 violates 14.7.3, p5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 13 09:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     sebor@roguewave.com
>Release:        3.2
>Organization:
>Environment:

>Description:
This was first reported against 2.95.2 on 12/1/99. The bug is still present in 3.2. The compiler fails to reject the following ill-formed program.

Regards
Martin


$ cat t.cpp; gcc --version; gcc t.cpp -c; echo $?

template<class T> struct A {
    void f(T) { /* ... */ }
    static const bool b = false;
};

template<> struct A<int> {
    void f(int);
    static const bool b;
};

//  explicit specialization syntax not used for a member of
//  explicitly specialized class template specialization
void A<int>::f(int) { /* ... */ }

template<> const bool A<int>::b = true;   // <-- error
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

0
>How-To-Repeat:

>Fix:

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


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

end of thread, other threads:[~2002-12-13 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13 12:53 c++/8929: g++ 3.2 violates 14.7.3, p5 bangerth
  -- strict thread matches above, loose matches on Subject: below --
2002-12-13  9:36 sebor

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