public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization
@ 2011-10-24 13:08 public at alisdairm dot net
  2011-10-24 13:25 ` [Bug c++/50853] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: public at alisdairm dot net @ 2011-10-24 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50853
           Summary: Internal Compiler Error returning a template type
                    using brace initialization
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: public@alisdairm.net


The following obscure code produces an ICE when the function template 'test' is
called:


template<int> struct MyType{};

template<int VAL>
auto test(MyType<VAL>) -> MyType<int{VAL}> { return {}; }

int main() {
   MyType<int{256}>{};
   test( MyType<256>{} );  // no error without this call
}

The ICE produced is:

internal compiler error: in tsubst_copy_and_build, at cp/pt.c:13389


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
@ 2011-10-24 13:25 ` redi at gcc dot gnu.org
  2011-10-24 13:47 ` [Bug c++/50853] [C++0x] " paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-24 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-24 13:25:25 UTC ---
I get:  sorry, unimplemented: mangling constructor


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
  2011-10-24 13:25 ` [Bug c++/50853] " redi at gcc dot gnu.org
@ 2011-10-24 13:47 ` paolo.carlini at oracle dot com
  2011-10-24 14:03 ` public at alisdairm dot net
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-24 13:47 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Internal Compiler Error     |[C++0x] Internal Compiler
                   |returning a template type   |Error returning a template
                   |using brace initialization  |type using brace
                   |                            |initialization

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-24 13:46:42 UTC ---
Likewise here.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
  2011-10-24 13:25 ` [Bug c++/50853] " redi at gcc dot gnu.org
  2011-10-24 13:47 ` [Bug c++/50853] [C++0x] " paolo.carlini at oracle dot com
@ 2011-10-24 14:03 ` public at alisdairm dot net
  2011-10-24 14:07 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: public at alisdairm dot net @ 2011-10-24 14:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Alisdair Meredith <public at alisdairm dot net> 2011-10-24 14:02:22 UTC ---
The original report was compiled with gcc 4.6.1 supplied by MacPorts.  Could
you confirm if the not-supported error message occurs in trunk, or a separately
compiled gcc 4.6.1?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
                   ` (2 preceding siblings ...)
  2011-10-24 14:03 ` public at alisdairm dot net
@ 2011-10-24 14:07 ` redi at gcc dot gnu.org
  2011-10-24 14:11 ` public at alisdairm dot net
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-24 14:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-24 14:06:26 UTC ---
The 4.6.1 release and trunk both give the error I quoted.

What does 'gcc -v' show for your compiler?
(that info should be in the report anyway! ;)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
                   ` (3 preceding siblings ...)
  2011-10-24 14:07 ` redi at gcc dot gnu.org
@ 2011-10-24 14:11 ` public at alisdairm dot net
  2011-10-24 14:21 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: public at alisdairm dot net @ 2011-10-24 14:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Alisdair Meredith <public at alisdairm dot net> 2011-10-24 14:10:38 UTC ---
Using built-in specs.
COLLECT_GCC=gcc-mp-4.6
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.1/lto-wrapper
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.6-20110325/configure --prefix=/opt/local
--build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++
--libdir=/opt/local/lib/gcc46 --includedir=/opt/local/include/gcc46
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local
--with-system-zlib --disable-nls --program-suffix=-mp-4.6
--with-gxx-include-dir=/opt/local/include/gcc46/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking
--disable-multilib --enable-fully-dynamic-string
Thread model: posix
gcc version 4.6.1 20110325 (prerelease) (GCC) 


Hmm, that 'pre-rerelease' tag is annoying - the MacPorts port file updated to
suggest this is the release version, rather than the release candidate.

Sounds like I have a bad version, anyway.  Sorry for the noise.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
                   ` (4 preceding siblings ...)
  2011-10-24 14:11 ` public at alisdairm dot net
@ 2011-10-24 14:21 ` redi at gcc dot gnu.org
  2011-10-24 14:23 ` redi at gcc dot gnu.org
  2011-10-24 14:27 ` public at alisdairm dot net
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-24 14:21 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.6.1, 4.7.0
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.1
      Known to fail|                            |4.6.0

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-24 14:20:55 UTC ---
ah yes, get the ICE with 4.6.0 so this appears to have been fixed for 4.6.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
                   ` (5 preceding siblings ...)
  2011-10-24 14:21 ` redi at gcc dot gnu.org
@ 2011-10-24 14:23 ` redi at gcc dot gnu.org
  2011-10-24 14:27 ` public at alisdairm dot net
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-24 14:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-24 14:22:51 UTC ---
actually, I guess I was a bit hasty closing it ... there's no ICE but it still
fails to compile - should we reopen?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/50853] [C++0x] Internal Compiler Error returning a template type using brace initialization
  2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
                   ` (6 preceding siblings ...)
  2011-10-24 14:23 ` redi at gcc dot gnu.org
@ 2011-10-24 14:27 ` public at alisdairm dot net
  7 siblings, 0 replies; 9+ messages in thread
From: public at alisdairm dot net @ 2011-10-24 14:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Alisdair Meredith <public at alisdairm dot net> 2011-10-24 14:27:18 UTC ---
I am happy with closed - the ICE is resolved an PR50855 reports the
unimplemented error message, with (hopefully) a simpler test case.

It might be worth re-testing once PR50855 is resolved, just to be sure though.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-10-24 14:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 13:08 [Bug c++/50853] New: Internal Compiler Error returning a template type using brace initialization public at alisdairm dot net
2011-10-24 13:25 ` [Bug c++/50853] " redi at gcc dot gnu.org
2011-10-24 13:47 ` [Bug c++/50853] [C++0x] " paolo.carlini at oracle dot com
2011-10-24 14:03 ` public at alisdairm dot net
2011-10-24 14:07 ` redi at gcc dot gnu.org
2011-10-24 14:11 ` public at alisdairm dot net
2011-10-24 14:21 ` redi at gcc dot gnu.org
2011-10-24 14:23 ` redi at gcc dot gnu.org
2011-10-24 14:27 ` public at alisdairm dot net

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).