From: Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
To: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Weird g++ error with current 3.4 CVS
Date: Mon, 16 Aug 2004 19:48:00 -0000 [thread overview]
Message-ID: <41210D83.8070109@tat.physik.uni-tuebingen.de> (raw)
Since a g++ rebuild of todays CVS I get the following weird error from
compiling the POOMA library:
/net/alwazn/home/rguenth/src/pooma-bk/r2/src/Domain/SliceDomain.h: In
method `SliceDomain<DomainTraits<SliceRange<2,1> > >::SliceDomain(const
SliceDomain<DomainTraits<SliceRange<2,1> > > &)':
/net/alwazn/home/rguenth/src/pooma-bk/r2/src/Domain/SliceRange.h:121:
instantiated from `SliceRange<2,1>::SliceRange(const SliceRange<2,1> &)'
/net/alwazn/home/rguenth/src/pooma-bk/r2/src/Engine/BrickBase.cpp:301:
instantiated from `Pooma::DoubleSliceHelper<1,2>::init(Interval<1> &,
int *, int &, const Pooma::BrickViewBase<2> &, const SliceInterval<2,1> &)'
src/Engine/BrickBase3.cmpl.cpp:38: instantiated from here
/net/alwazn/home/rguenth/src/pooma-bk/r2/src/Domain/SliceDomain.h:156:
non-constant `operator <=<DomainTraits<SliceRange<2,1> >::{anonymous
enum}>((+&sliceDimensions), (+&dimensions))' cannot be used as template
argument
where it is moaning about the CTAssert in
// copy constructor
SliceDomain(const SliceDomain<DT> &sd)
: slice_m(sd.slice_m),
domain_m(sd.domain_m) {
CTAssert(DT::sliceDimensions <= DT::dimensions);
for (int d = 0; d < DT::dimensions; ++d)
ignore_m[d] = sd.ignore_m[d];
}
where CTAssert is defined in the usual way
#define CTAssert(c) PoomaCTAssert<(c)>::test()
template<bool B> struct PoomaCTAssert {};
template<> struct PoomaCTAssert<true> { static void test() {} };
and DT::sliceDimensions and DT::dimensions are anonymouns enum entries.
It seems DT::sliceDimensions <= DT::dimensions is treated as method
reference somehow, is this correct or even standard conform?
g++-3.4 (GCC) 3.4.2 20040816 (prerelease)
Richard.
next reply other threads:[~2004-08-16 19:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 19:48 Richard Guenther [this message]
2004-08-16 20:04 ` Richard Guenther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41210D83.8070109@tat.physik.uni-tuebingen.de \
--to=rguenth@tat.physik.uni-tuebingen.de \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).