public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6273: [2003-01-30] User-defined operator+ and use of enum values in computation of array bounds
@ 2003-05-14  0:27 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-05-14  0:27 UTC (permalink / raw)
  To: comer, gcc-bugs, gcc-prs, nobody, reichelt

Synopsis: [2003-01-30] User-defined operator+ and use of enum values in computation of array bounds

Responsible-Changed-From-To: unassigned->reichelt
Responsible-Changed-By: bangerth
Responsible-Changed-When: Wed May 14 00:27:37 2003
Responsible-Changed-Why:
    Volker, do you want to make a testsuite case out of this one?
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Wed May 14 00:27:37 2003
State-Changed-Why:
    Works now in mainline.

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


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

* Re: c++/6273: [2003-01-30] User-defined operator+ and use of enum values in computation of array bounds
@ 2003-02-01 21:28 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-01 21:28 UTC (permalink / raw)
  To: comer, gcc-bugs, gcc-prs, nobody

Old Synopsis: [2003-01-20] ICE in tree_low_cst, at tree.c:3471, also an error with gcc 2.95.3
New Synopsis: [2003-01-30] User-defined operator+ and use of enum values in computation of array bounds

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Sat Feb  1 21:28:04 2003
State-Changed-Why:
    With recent snapshots, it's not an ICE any more. However,
    when reducing the code to the following
    -----------------------
    template <typename> struct X {
        enum { N = 10 };
        int items[N+1];
    };
    template <typename A, typename B> int operator+(A,B);
    X<int> x;
    ------------------------
    we still get an error:
    test/x> ../../bin/gcc-2003-01-30/bin/c++ -c x.cc
    x.cc:6: error: variable-size type declared outside of any function
    x.cc:6: error: variable-size type declared outside of any function
    
    Apparently, the user-defined template op+ is used to
    determine the array size. I don't know whether this is
    right or wrong...
    
    W.

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


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

end of thread, other threads:[~2003-05-14  0:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14  0:27 c++/6273: [2003-01-30] User-defined operator+ and use of enum values in computation of array bounds bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-02-01 21:28 bangerth

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