public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17150] New: Ugly diagnostics for invalid variably modified type
@ 2004-08-23 13:01 falk at debian dot org
  2004-08-23 13:05 ` [Bug c++/17150] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: falk at debian dot org @ 2004-08-23 13:01 UTC (permalink / raw)
  To: gcc-bugs

This test case posted for PR 17148:

struct A {};
struct B : A
{
    static int foo() { return 1; }
    int i[B::foo()];
};

produces the ugly diagnostic:

test.cc:6: error: data member may not have variably modified type `int [(((long
unsigned int)(((long int)B::foo()) - 1)) + 1u)]'

with g++ 3.5.0 20040815 on alphaev68-unknown-linux-gnu.

-- 
           Summary: Ugly diagnostics for invalid variably modified type
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-06-19 14:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 13:01 [Bug c++/17150] New: Ugly diagnostics for invalid variably modified type falk at debian dot org
2004-08-23 13:05 ` [Bug c++/17150] " pinskia at gcc dot gnu dot org
2004-08-23 13:48 ` bangerth at dealii dot org
2004-08-29 15:31 ` gdr at gcc dot gnu dot org
2005-06-19 14:13 ` falk at debian 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).