From: Gabriel Dos Reis <Gabriel.Dos-Reis@dptmaths.ens-cachan.fr>
To: jason@cygnus.com
Cc: egcs@cygnus.com
Subject: forwarded message from Gabriel Dos Reis
Date: Wed, 03 Dec 1997 00:21:00 -0000 [thread overview]
Message-ID: <199712030511.GAA08472@piano.dptmaths.ens-cachan.fr> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]
Below is the code I'm talking about.
------- start of forwarded message (RFC 934 encapsulation) -------
Return-Path: <owner-egcs-bugs@cygnus.com>
Message-Id: <199711202029.VAA01260@basson.dptmaths.ens-cachan.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Precedence: bulk
X-Filter: mailagent [version 3.0 PL44] for dosreis@piano.ens-cachan.fr
From: Gabriel Dos Reis <Gabriel.Dos-Reis@dptmaths.ens-cachan.fr>
Sender: owner-egcs-bugs@cygnus.com
To: egcs-bugs@cygnus.com
Cc: mmitchell@usa.net
Subject: [Internal compiler error]
Date: Thu, 20 Nov 1997 21:29:53 +0100 (MET)
Hi !
consider:
% cat toto.C
#include <iterator>
template<size_t n, size_t i> struct PartialDotProduct {
template<class T>
static T Expand(T* a, T* b) { return T(); }
};
const int N = 10;
template<class In1, class In2>
typename iterator_traits<In1>::value_type
dot(In1 f1, In2 f2)
{
return PartialDotProduct<N, 0>::Expand(f1, f2); // line 14
}
int main()
{
double a[N], b[N];
double s = dot(&a[0], &b[0]);
}
% eg++ -c toto.C
toto.C: In function `typename iterator_traits<Iterator>::value_type dot(In1, In2)':
toto.C:14: Internal compiler error 243.
toto.C:14: Please submit a full bug report to `egcs-bugs@cygnus.com'.
I didn't checked whether it worked with previous snapshots.
Best,
- -- Gaby
Gabriel Dos Reis | Ãcole Normale Supérieure de Cachan
INRIA, Unité de Recherche de | Centre de Mathématiques et de Leurs
Sophia Antipolis | Applications
Projet SAFIR | Ãquipe de Géométrie
------- end -------
--
reply other threads:[~1997-12-03 0:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199712030511.GAA08472@piano.dptmaths.ens-cachan.fr \
--to=gabriel.dos-reis@dptmaths.ens-cachan.fr \
--cc=egcs@cygnus.com \
--cc=jason@cygnus.com \
/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).