public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/49628] [4.7 Regression] 447.dealII in SPEC CPU 2006 failed to build
Date: Mon, 04 Jul 2011 14:33:00 -0000	[thread overview]
Message-ID: <bug-49628-4-vFZv5Pymal@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49628-4@http.gcc.gnu.org/bugzilla/>

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|2011-07-04 13:38:59         |2011.07.04 14:33:23
     Ever Confirmed|0                           |1

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-04 14:33:23 UTC ---
Testcase:

#include <vector>
template <int rank, int dim> class Tensor;
template <int dim> class Tensor<1,dim> {
public:
    explicit Tensor (const bool initialize = true);
    Tensor (const Tensor<1,dim> &);
    Tensor<1,dim> & operator = (const Tensor<1,dim> &);
    double values[(dim!=0) ? (dim) : 1];
};
template <int dim>
inline Tensor<1,dim> & Tensor<1,dim>::operator = (const Tensor<1,dim> &p)
{
    for (unsigned int i=0; i<dim; ++i)
      values[i] = p.values[i];
};
template <int dim> class Quadrature {
public:
    const unsigned int n_quadrature_points;
};
class MappingQ1
{
    class InternalData  {
    public:
        std::vector<Tensor<1,3> > shape_derivatives;
        unsigned int n_shape_functions;
    };
    void compute_data (const Quadrature<3> &quadrature, InternalData &data)
const;
};
void MappingQ1::compute_data (const Quadrature<3> &q, InternalData &data) const
{
    const unsigned int n_q_points = q.n_quadrature_points;
    data.shape_derivatives.resize(data.n_shape_functions * n_q_points);
}


  parent reply	other threads:[~2011-07-04 14:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-04 13:27 [Bug middle-end/49628] New: " hjl.tools at gmail dot com
2011-07-04 13:39 ` [Bug middle-end/49628] " rguenth at gcc dot gnu.org
2011-07-04 14:02 ` hjl.tools at gmail dot com
2011-07-04 14:26 ` rguenth at gcc dot gnu.org
2011-07-04 14:33 ` rguenth at gcc dot gnu.org [this message]
2011-07-04 15:07 ` rguenth at gcc dot gnu.org
2011-07-05  6:44 ` irar at il dot ibm.com
2011-07-05  8:18 ` irar at il dot ibm.com
2011-07-05  8:54 ` rguenth at gcc dot gnu.org
2011-07-05 11:25 ` rguenth at gcc dot gnu.org
2011-07-05 11:27 ` rguenth at gcc dot gnu.org
2011-07-06  8:11 ` rguenth at gcc dot gnu.org
2011-09-08 10:49 ` rguenth at gcc dot gnu.org

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=bug-49628-4-vFZv5Pymal@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).