incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-347) [HP aCC] incorrect warning 578
Date Wed, 07 Mar 2007 18:09:24 GMT
[HP aCC] incorrect warning 578
------------------------------

                 Key: STDCXX-347
                 URL: https://issues.apache.org/jira/browse/STDCXX-347
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: HP aCC 3
            Reporter: Martin Sebor
            Priority: Trivial


-------- Original Message --------
Subject: incorrect warning 578
Date: Tue, 06 Mar 2007 11:31:25 -0700
From: Martin Sebor <sebor@roguewave.com>
Organization: Rogue Wave Software
To: acxx@cup.hp.com

The warning below is incorrect -- there clearly is a way to
initialize such members.

Martin

$ cat t.cpp && aCC +w t.cpp
int main ()
{
    static const struct {
        const char s [2];
    } a[] = { "a" };
}

Warning 578: "t.cpp", line 4 # A class member may not be a const array 
since there is no way to initialize such a member.
            const char s [2];
                       ^


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message