public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4320: Multidimensional arrays of constant strings does not work properly, when declared as static in the private part of a class.
@ 2001-12-15 10:23 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-12-15 10:23 UTC (permalink / raw)
  To: angarcia, gcc-bugs, gcc-prs, nobody

Synopsis: Multidimensional arrays of constant strings does not work properly, when declared as static in the private part of a class.

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sat Dec 15 10:23:51 2001
State-Changed-Why:
    this is fixed in 3.0

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


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

* c++/4320: Multidimensional arrays of constant strings does not work properly, when declared as static in the private part of a class.
@ 2001-09-13 13:56 angarcia
  0 siblings, 0 replies; 2+ messages in thread
From: angarcia @ 2001-09-13 13:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4320
>Category:       c++
>Synopsis:       Multidimensional arrays of constant strings does not work properly, when declared as static in the private part of a class.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 13:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     angarcia@univalle.edu.co
>Release:        Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
>Organization:
>Environment:
Mandrake 8.0 on AMD K-6
>Description:
Multidimensional arrays of constant strings does not work properly, when declared as static in the private part of a class.
- If 'const' is supressed, then it works ok.
- If declared as local variable in main(), then it works ok.
- If the array is unidimensional, then it works ok.
>How-To-Repeat:
g++ main.cpp
./a.out
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="main.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename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iBJdCBtdXN0
IGJlICJGb3VyIgogICAgfQp9OwoKLy8gaWYgSSBzdXByZXNzICdjb25zdCcgdGhlbiBpdCB3b3Jr
cyBvazoKY29uc3Qgc3RyaW5nIFRlc3Q6OmFycmF5WzJdWzJdID0KICB7CiAgICB7ICJPbmUiLCAi
VHdvIiB9LAogICAgeyAiVGhyZWUiLCAiRm91ciIgfSwKICB9OwoKCgppbnQgbWFpbihpbnQgYXJn
YywgY2hhciAqYXJndltdKQp7CiAgVGVzdCB0ZXN0OwogIHJldHVybiAwOwp9Cg==


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

end of thread, other threads:[~2001-12-15 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-15 10:23 c++/4320: Multidimensional arrays of constant strings does not work properly, when declared as static in the private part of a class nathan
  -- strict thread matches above, loose matches on Subject: below --
2001-09-13 13:56 angarcia

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