This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6435: int static const inicialized inline reported undefined



>Number:         6435
>Category:       c++
>Synopsis:       int static const inicialized inline reported undefined
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 24 05:35:59 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Manuel.Sequeira@iscte.pt
>Release:        3.0.2
>Organization:
>Environment:
Linux Red Hat 7.2
>Description:
// Compile with 'g++ bug.C'

void f(int const& c) {}

struct C {
    static int const c = 0;
};

int main() {
    f(C::c);
}
>How-To-Repeat:

>Fix:

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]