public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bangerth at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/38950] [4.3/4.4 regression] ICE: deducing function template arguments for array type.
Date: Fri, 30 Jan 2009 15:27:00 -0000	[thread overview]
Message-ID: <20090130152716.25551.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38950-16474@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from bangerth at gmail dot com  2009-01-30 15:27 -------
Confirmed. This used to work in 4.1 where we got the following error
(which does not earn the prize for the prettiest error message ever):

g/x> /home/bangerth/bin/gcc-4.1.1/bin/c++ -c x.cc
x.cc: In function 'int main()':
x.cc:7: error: size of array has non-integral type 'T'
x.cc:1: error: size of array has non-integral type 'T'
x.cc:1: error: size of array has non-integral type 'T'
x.cc:7: error: invalid initialization of reference of type 'unsigned int
(&)[1]' from expression of type 'unsigned int [2]'
x.cc:1: error: in passing argument 1 of 'void f(T (&)[N]) [with T = unsigned
int, T N = ((T)2)]'
x.cc: In function 'void f(T (&)[N]) [with T = unsigned int, T N = ((T)2)]':
x.cc:7:   instantiated from here
x.cc:1: error: size of array has non-integral type 'T'


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2009-01-30 15:27:16
               date|                            |
            Summary|ICE: deducing function      |[4.3/4.4 regression] ICE:
                   |template arguments for array|deducing function template
                   |type.                       |arguments for array type.


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


  reply	other threads:[~2009-01-30 15:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23 21:38 [Bug c++/38950] New: " schaub-johannes at web dot de
2009-01-30 15:27 ` bangerth at gmail dot com [this message]
2009-01-30 15:28 ` [Bug c++/38950] [4.3/4.4 regression] " bangerth at gmail dot com
2009-02-01 13:25 ` rguenth at gcc dot gnu dot org
2009-02-03  2:03 ` schaub-johannes at web dot de
2009-02-12 18:48 ` jason at gcc dot gnu dot org
2009-02-12 22:41 ` jason at gcc dot gnu dot org
2009-02-17 18:27 ` jason at gcc dot gnu dot org
2009-02-17 18:28 ` 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=20090130152716.25551.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).