public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/34950] [4.2/4.3 Regression] ICE in svn boost math toolkit
Date: Fri, 25 Jan 2008 09:54:00 -0000	[thread overview]
Message-ID: <20080125095016.25038.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34950-15683@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from rguenth at gcc dot gnu dot org  2008-01-25 09:50 -------
EDG accepts this one where we still ICE the same:

struct default_policy {};
template <class T = default_policy>
struct policy
{
    typedef int precision_type;
};
template <class Real, class Policy> struct precision {
    typedef Real type;
    typedef typename Policy::precision_type precision_type;
};
template <class T1, class T2, class Policy>
struct bessel_traits {
    typedef T1 result_type;
    typedef typename precision<result_type, Policy>::type precision_type;
};

template <class Fn>
void
def(char const* name, Fn fn);

template <class T1, class T2, class Policy>
typename bessel_traits<T1, T2, Policy>::result_type
cyl_bessel_j(T1 v, T2 x, const Policy& pol);

template <class T1, class T2>
typename bessel_traits<T1, T2, policy<> >::result_type
cyl_bessel_j(T1 v, T2 x);

void hedge_expose_polynomial()
{
    def("cyl_bessel_j", cyl_bessel_j<int, double>);
}


3.3 rejects this with
t.ii: In function `void hedge_expose_polynomial()':
t.ii:31: error: no matching function for call to `def(const char[13], <unknown 
   type>)'

4.1 rejects it with
t.ii: In instantiation of 'precision<int, Policy>':
t.ii:14:   instantiated from 'bessel_traits<int, double, Policy>'
t.ii:31:   instantiated from here
t.ii:9: error: no type named 'precision_type' in 'Policy'
t.ii: In function 'void hedge_expose_polynomial()':
t.ii:31: error: no matching function for call to 'def(const char [13],
<unresolved overloaded function type>)'

and 4.2 and 4.3 ICE.


-- 


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


  parent reply	other threads:[~2008-01-25  9:50 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-24  4:02 [Bug c++/34950] New: " inform at tiker dot net
2008-01-24  4:03 ` [Bug c++/34950] " inform at tiker dot net
2008-01-24 11:04 ` rguenth at gcc dot gnu dot org
2008-01-24 11:26 ` rguenth at gcc dot gnu dot org
2008-01-24 11:30 ` pinskia at gcc dot gnu dot org
2008-01-24 15:59 ` [Bug c++/34950] [4.2/4.3 Regression] " rguenth at gcc dot gnu dot org
2008-01-24 19:43 ` pinskia at gcc dot gnu dot org
2008-01-24 21:29 ` inform at tiker dot net
2008-01-25  9:54 ` rguenth at gcc dot gnu dot org [this message]
2008-01-25 21:46 ` rguenth at gcc dot gnu dot org
2008-02-01 17:05 ` jsm28 at gcc dot gnu dot org
2008-02-06 20:53 ` rguenth at gcc dot gnu dot org
2008-02-12  8:17 ` bangerth at dealii dot org
2008-02-12 23:14 ` rguenth at gcc dot gnu dot org
2008-02-12 23:19 ` rguenth at gcc dot gnu dot org
2008-02-17 16:21 ` rguenth at gcc dot gnu dot org
2008-02-19  6:16 ` mark at codesourcery dot com
2008-02-19 10:29 ` rguenth at gcc dot gnu dot org
2008-02-19 17:51 ` jakub at gcc dot gnu dot org
2008-02-19 20:18 ` [Bug c++/34950] [4.2/4.3/4.4 " jason at gcc dot gnu dot org
2008-02-19 21:21 ` jason at gcc dot gnu dot org
2008-02-19 21:40 ` jason at gcc dot gnu dot org
2008-02-19 21:46 ` jason at gcc dot gnu dot org
2008-02-19 22:14 ` jason at gcc dot gnu dot org
2008-02-19 22:54 ` jason at gcc dot gnu dot org
2008-02-19 22:54 ` jason at gcc dot gnu dot org
2008-02-20  4:48 ` jason at gcc dot gnu dot org
2008-02-20  4:49 ` jason at gcc dot gnu dot org
2008-02-20  4:49 ` jason at gcc dot gnu dot 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=20080125095016.25038.qmail@sourceware.org \
    --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).