public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
@ 2015-09-18  7:16 su at cs dot ucdavis.edu
  2015-09-18  8:35 ` [Bug rtl-optimization/67619] " ubizjak at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-09-18  7:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

            Bug ID: 67619
           Summary: ICE at -O1 and above on x86_64-linux-gnu in
                    int_mode_for_mode, at stor-layout.c:425
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

The following code causes an ICE when compiled with the current gcc trunk at
-O1 and above on x86_64-linux-gnu in both 32-bit and 64-bit modes.

It also affects 4.6.x through 5.2.x: 
(1) hang: 4.6.x and 4.7.x 
(2) ICE: 4.8.x to 5.2.x 


$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20150917 (experimental) [trunk revision 227862] (GCC) 
$ 
$ gcc-trunk -O0 -c small.c
$ 
$ gcc-trunk -O1 -c small.c
small.c: In function ‘foo’:
small.c:9:3: internal compiler error: in int_mode_for_mode, at
stor-layout.c:425
   __builtin_eh_return (l, p);
   ^
0xa9f22b int_mode_for_mode(machine_mode)
        ../../gcc-trunk/gcc/stor-layout.c:425
0x7ec67e emit_move_via_integer
        ../../gcc-trunk/gcc/expr.c:3143
0x7f8d9a emit_move_insn_1(rtx_def*, rtx_def*)
        ../../gcc-trunk/gcc/expr.c:3524
0x7f90d4 emit_move_insn(rtx_def*, rtx_def*)
        ../../gcc-trunk/gcc/expr.c:3592
0x7dcae2 copy_to_reg(rtx_def*)
        ../../gcc-trunk/gcc/explow.c:578
0x7d558f expand_builtin_eh_return(tree_node*, tree_node*)
        ../../gcc-trunk/gcc/except.c:2222
0x6d48f4 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../gcc-trunk/gcc/builtins.c:6450
0x7f46d2 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc-trunk/gcc/expr.c:10473
0x6f54a3 expand_expr
        ../../gcc-trunk/gcc/expr.h:255
0x6f54a3 expand_call_stmt
        ../../gcc-trunk/gcc/cfgexpand.c:2647
0x6f54a3 expand_gimple_stmt_1
        ../../gcc-trunk/gcc/cfgexpand.c:3534
0x6f54a3 expand_gimple_stmt
        ../../gcc-trunk/gcc/cfgexpand.c:3697
0x6f6b9a expand_gimple_basic_block
        ../../gcc-trunk/gcc/cfgexpand.c:5700
0x6fda46 execute
        ../../gcc-trunk/gcc/cfgexpand.c:6286
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ 


--------------------------------


void
foo ()
{
  unsigned long l;
  void *p = 0; 

  __builtin_unwind_init ();
  l = 0; 
  __builtin_eh_return (l, p);
}
>From gcc-bugs-return-497483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 07:27:30 2015
Return-Path: <gcc-bugs-return-497483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37402 invoked by alias); 18 Sep 2015 07:27:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37383 invoked by uid 48); 18 Sep 2015 07:27:24 -0000
From: "cctsai57 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67620] New: _GLIBCXX_USE_CXX11_ABI=1 fails to catch ios_base::failure
Date: Fri, 18 Sep 2015 07:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cctsai57 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-67620-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01461.txt.bz2
Content-length: 1518

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg620

            Bug ID: 67620
           Summary: _GLIBCXX_USE_CXX11_ABI=1 fails to catch
                    ios_base::failure
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cctsai57 at gmail dot com
  Target Milestone: ---

#include <iostream>
#include <fstream>
#include <typeinfo>
using namespace std;

int main()
{
    ifstream f;
    f.exceptions(ifstream::failbit);

    try {
      f.open("file_does_not_exit");// throw ios_base::failure
    }
    catch (const ios_base::failure &iof)
    {
        // g++ -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=0
        cout << "typeid(iof) : " << typeid(iof).name() << '\n';
    }
    catch (const exception &ex)
    {
        // g++ -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=1. Bug? Why?
        cout << "typeid(ex)  : " << typeid(ex).name() << '\n';
    }
}

$ g++ -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=0 a.cpp -static && ./a.out
typeid(iof) : NSt8ios_base7failureE
$ g++ -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=1 a.cpp -static && ./a.out
typeid(ex)  : NSt8ios_base7failureE

Description:
Let `f.open()' throw `ios_base::failure'.  If compiled with
-D_GLIBCXX_USE_CXX11_ABI=1, the above code fails to catch `ios_base::failure',
but `exception' insead.

gcc version:
gcc version 5.2.1 20150917 (GCC)
gcc version 6.0.0 20150917 (experimental) (GCC)


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

* [Bug rtl-optimization/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
  2015-09-18  7:16 [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425 su at cs dot ucdavis.edu
@ 2015-09-18  8:35 ` ubizjak at gmail dot com
  2015-09-21 15:24 ` [Bug middle-end/67619] " uros at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2015-09-18  8:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-18
          Component|target                      |rtl-optimization
     Ever confirmed|0                           |1

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Patch in testing:

--cut here--
Index: except.c
===================================================================
--- except.c    (revision 227896)
+++ except.c    (working copy)
@@ -2219,7 +2219,7 @@ expand_builtin_eh_return (tree stackadj_tree ATTRI
                     VOIDmode, EXPAND_NORMAL);
   tmp = convert_memory_address (Pmode, tmp);
   if (!crtl->eh.ehr_stackadj)
-    crtl->eh.ehr_stackadj = copy_to_reg (tmp);
+    crtl->eh.ehr_stackadj = copy_addr_to_reg (tmp);
   else if (tmp != crtl->eh.ehr_stackadj)
     emit_move_insn (crtl->eh.ehr_stackadj, tmp);
 #endif
@@ -2228,7 +2228,7 @@ expand_builtin_eh_return (tree stackadj_tree ATTRI
                     VOIDmode, EXPAND_NORMAL);
   tmp = convert_memory_address (Pmode, tmp);
   if (!crtl->eh.ehr_handler)
-    crtl->eh.ehr_handler = copy_to_reg (tmp);
+    crtl->eh.ehr_handler = copy_addr_to_reg (tmp);
   else if (tmp != crtl->eh.ehr_handler)
     emit_move_insn (crtl->eh.ehr_handler, tmp);

--cut here--
>From gcc-bugs-return-497487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 08:42:29 2015
Return-Path: <gcc-bugs-return-497487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129434 invoked by alias); 18 Sep 2015 08:42:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128658 invoked by uid 48); 18 Sep 2015 08:42:25 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
Date: Fri, 18 Sep 2015 08:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status component assigned_to target_milestone
Message-ID: <bug-67619-4-1mMA8BXVDq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67619-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67619-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01465.txt.bz2
Content-length: 496

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|rtl-optimization            |middle-end
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com
   Target Milestone|---                         |4.9.4
>From gcc-bugs-return-497488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 09:05:32 2015
Return-Path: <gcc-bugs-return-497488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58640 invoked by alias); 18 Sep 2015 09:05:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 58603 invoked by uid 48); 18 Sep 2015 09:05:28 -0000
From: "physik3 at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67621] New: Syntax error for template function of template class
Date: Fri, 18 Sep 2015 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: physik3 at gmx dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-67621-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01466.txt.bz2
Content-length: 1721

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67621

            Bug ID: 67621
           Summary: Syntax error for template function of template class
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: physik3 at gmx dot net
  Target Milestone: ---

Hey guys,

I think I have found a bug in the GCC C++ frontend.

I have a template class which provides a function with additional template
parameters. This works fine if the class is parameterized with a non-template
type or a template type whose arguments are fixed, but the compiler throws a
syntax error if the class is parameterized with a template class itself whose
argument is open.

I could downsize the problem to the following minimal example:
============
template<typename F>
struct Foo {

        template<typename T> void foo(void) {}

};

template<typename B>
struct Bar {

};

int main(void) {
        Foo<double> foo1;
        foo1.foo<int>(); // this line works
        Foo<Bar<double>> foo2;
        foo2.foo<int>(); // this line works
        return 0;
}

template<typename B>
void baz(void) {
        Foo<Bar<B>> foo;
        foo.foo<int>(); // this line gives a compiler error
}
============

GCC quits with "error: expected ‘;’ before ‘int’". Because I cannot see any
syntactical error, I guess it is a bug in GCC. Moreover, the Visual Studio
compiler accepts this code.

I detected this working with version 4.8.3, but I verified that it also affects
the newer 5.2.1 release.

Best
>From gcc-bugs-return-497489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 09:11:21 2015
Return-Path: <gcc-bugs-return-497489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64392 invoked by alias); 18 Sep 2015 09:11:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64316 invoked by uid 48); 18 Sep 2015 09:11:09 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/67622] New: [6 regression] Solaris/SPARC bootstrap fails compiling stage2 stdc++.h.gch/O2ggnu++0x.gch
Date: Fri, 18 Sep 2015 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-67622-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01467.txt.bz2
Content-length: 34387

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg622

            Bug ID: 67622
           Summary: [6 regression] Solaris/SPARC bootstrap fails compiling
                    stage2 stdc++.h.gch/O2ggnu++0x.gch
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: davem at gcc dot gnu.org, ebotcazou at gcc dot gnu.org
  Target Milestone: ---
              Host: sparc-sun-solaris2.*
            Target: sparc-sun-solaris2.*
             Build: sparc-sun-solaris2.*

Between 20150911 and 20150917 (r227886), Solaris/SPARC bootstrap started to
fail
in stage2:

$ /var/gcc/regression/trunk/11-gcc/build/./gcc/xgcc -shared-libgcc
-B/var/gcc/regression/trunk/11-gcc/build/./gcc -nostdinc++
-L/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/src
-L/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/src/.libs
-L/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/libsupc++/.libs
-B/vol/gcc/sparc-sun-solaris2.11/bin/ -B/vol/gcc/sparc-sun-solaris2.11/lib/
-isystem /vol/gcc/sparc-sun-solaris2.11/include -isystem
/vol/gcc/sparc-sun-solaris2.11/sys-include    -x c++-header -nostdinc++ -g -O2
-I/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sparc-sun-solaris2.11
-I/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include
-I/vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++  -O2 -g -std=gnu++0x
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h -o
sparc-sun-solaris2.11/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:39:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/stl_algobase.h:898:68:
error: template definition of non-template 'static bool
std::__lexicographical_compare<_BoolType>::__lc(_II1, _II1, _II2, _II2)'
       __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2)
                                                                    ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:40:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:145:74:
error: template definition of non-template 'static int
__gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*,
std::size_t)'
     compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                          ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:158:32:
error: template definition of non-template 'static std::size_t
__gnu_cxx::char_traits<_CharT>::length(const char_type*)'
     length(const char_type* __p)
                                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:169:69:
error: template definition of non-template 'static const char_type*
__gnu_cxx::char_traits<_CharT>::find(const char_type*, std::size_t, const
char_type&)'
     find(const char_type* __s, std::size_t __n, const char_type& __a)
                                                                     ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:180:65:
error: template definition of non-template 'static
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::move(__gnu_cxx::char_traits<_CharT>::char_type*,
const char_type*, std::size_t)'
     move(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                 ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:189:65:
error: template definition of non-template 'static
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::copy(__gnu_cxx::char_traits<_CharT>::char_type*,
const char_type*, std::size_t)'
     copy(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                 ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/char_traits.h:199:58:
error: template definition of non-template 'static
__gnu_cxx::char_traits<_CharT>::char_type*
__gnu_cxx::char_traits<_CharT>::assign(__gnu_cxx::char_traits<_CharT>::char_type*,
std::size_t, __gnu_cxx::char_traits<_CharT>::char_type)'
     assign(char_type* __s, std::size_t __n, char_type __a)
                                                          ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:59:29:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::swap(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
     swap(basic_string& __s) _GLIBCXX_NOEXCEPT
                             ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:133:62:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_create(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type&, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     _M_create(size_type& __capacity, size_type __old_capacity)
                                                              ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:165:29:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator,
_InIterator, std::input_iterator_tag)'
      std::input_iterator_tag)
                             ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:208:31:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator,
_InIterator, std::forward_iterator_tag)'
      std::forward_iterator_tag)
                               ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:238:43:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_construct(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, _CharT)'
     _M_construct(size_type __n, _CharT __c)
                                           ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:255:40:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_assign(const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
     _M_assign(const basic_string& __str)
                                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:281:28:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::reserve(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     reserve(size_type __res)
                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:312:24:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_mutate(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
        size_type __len2)
                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:335:44:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_erase(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     _M_erase(size_type __pos, size_type __n)
                                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:348:37:
error: template definition of non-template 'void
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::resize(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type,
_CharT)'
     resize(size_type __n, _CharT __c)
                                     ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:360:47:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_append(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
     _M_append(const _CharT* __s, size_type __n)
                                               ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:382:23:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_replace_dispatch(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::const_iterator, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::const_iterator, _InputIterator, _InputIterator, std::__false_type)'
      std::__false_type)
                       ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:394:16:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_replace_aux(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, _CharT)'
      _CharT __c)
                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:423:31:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::_M_replace(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type)'
         const size_type __len2)
                               ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:475:55:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::copy(_CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     copy(_CharT* __s, size_type __n, size_type __pos) const
                                                       ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1178:61:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find(const _CharT* __s, size_type __pos, size_type __n) const
                                                             ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1201:45:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                             ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1219:62:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::rfind(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     rfind(const _CharT* __s, size_type __pos, size_type __n) const
                                                              ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1240:46:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::rfind(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     rfind(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                              ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1257:70:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_first_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                      ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1272:69:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_last_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_last_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                     ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1293:74:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_first_not_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                          ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1305:58:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_first_not_of(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_first_not_of(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                                          ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1316:73:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_last_not_of(const _CharT*, std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const
                                                                         ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/cassert:43:0,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:33:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1337:57:
error: template definition of non-template 'std::__cxx11::basic_string<_CharT,
_Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::find_last_not_of(_CharT, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
     find_last_not_of(_CharT __c, size_type __pos) const _GLIBCXX_NOEXCEPT
                                                         ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/string:53:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:40,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1357:72:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
const'
     compare(size_type __pos, size_type __n, const basic_string& __str) const
                                                                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1373:40:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&,
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type,
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) const'
      size_type __pos2, size_type __n2) const
                                        ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1390:32:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*)
const'
     compare(const _CharT* __s) const
                                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1405:65:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*) const'
     compare(size_type __pos, size_type __n1, const _CharT* __s) const
                                                                 ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/basic_string.tcc:1422:22:
error: template definition of non-template 'int
std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::compare(std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>::size_type) const'
      size_type __n2) const
                      ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.h:850:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/ios_base.h:41,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:42,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:45:46:
error: template definition of non-template 'std::locale::locale(const
std::locale&, _Facet*)'
     locale(const locale& __other, _Facet* __f)
                                              ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:63:36:
error: template definition of non-template 'std::locale
std::locale::combine(const std::locale&) const'
     combine(const locale& __other) const
                                    ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:82:60:
error: template definition of non-template 'bool std::locale::operator()(const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) const'
         const basic_string<_CharT, _Traits, _Alloc>& __s2) const
                                                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:149:76:
error: template definition of non-template 'int
std::__cxx11::collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const'
     collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw ()
                                                                            ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:155:80:
error: template definition of non-template 'std::size_t
std::__cxx11::collate<_CharT>::_M_transform(_CharT*, const _CharT*,
std::size_t) const'
     collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw
()

^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:162:51:
error: template definition of non-template 'virtual int
std::__cxx11::collate<_CharT>::do_compare(const _CharT*, const _CharT*, const
_CharT*, const _CharT*) const'
         const _CharT* __lo2, const _CharT* __hi2) const
                                                   ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:200:58:
error: template definition of non-template 'virtual
std::__cxx11::collate<_CharT>::string_type
std::__cxx11::collate<_CharT>::do_transform(const _CharT*, const _CharT*)
const'
     do_transform(const _CharT* __lo, const _CharT* __hi) const
                                                          ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/locale_classes.tcc:256:53:
error: template definition of non-template 'virtual long int
std::__cxx11::collate<_CharT>::do_hash(const _CharT*, const _CharT*) const'
     do_hash(const _CharT* __lo, const _CharT* __hi) const
                                                     ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:43:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/streambuf:827:43:
error: template definition of non-template 'std::basic_streambuf<_CharT,
_Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&)'
     basic_streambuf(const basic_streambuf&) = default;
                                           ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/streambuf:832:37:
error: template definition of non-template 'std::basic_streambuf<_CharT,
_Traits>& std::basic_streambuf<_CharT, _Traits>::operator=(const
std::basic_streambuf<_CharT, _Traits>&)'
     operator=(const basic_streambuf&) = default;
                                     ^
In file included from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/streambuf:850:0,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ios:43,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/istream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/sstream:38,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/complex:45,
                 from
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/ccomplex:38,
                 from
/vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:52:
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:46:42:
error: template definition of non-template 'virtual std::streamsize
std::basic_streambuf<_CharT, _Traits>::xsgetn(std::basic_streambuf<_CharT,
_Traits>::char_type*, std::streamsize)'
     xsgetn(char_type* __s, streamsize __n)
                                          ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:80:48:
error: template definition of non-template 'virtual std::streamsize
std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*,
std::streamsize)'
     xsputn(const char_type* __s, streamsize __n)
                                                ^
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:
In instantiation of 'class std::basic_streambuf<char>':
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:149:25:
  required from here
/var/gcc/regression/trunk/11-gcc/build/sparc-sun-solaris2.11/libstdc++-v3/include/bits/streambuf.tcc:45:5:
internal compiler error: in tsubst_decl, at cp/pt.c:11516
     basic_streambuf<_CharT, _Traits>::
     ^

This seems to be a miscompilation, and Solaris/x86 bootstrap is fine from the
same tree.  I'm now starting a reghunt.

  Rainer


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

* [Bug middle-end/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
  2015-09-18  7:16 [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425 su at cs dot ucdavis.edu
  2015-09-18  8:35 ` [Bug rtl-optimization/67619] " ubizjak at gmail dot com
@ 2015-09-21 15:24 ` uros at gcc dot gnu.org
  2015-09-21 19:09 ` uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: uros at gcc dot gnu.org @ 2015-09-21 15:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

--- Comment #4 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon Sep 21 15:23:52 2015
New Revision: 227976

URL: https://gcc.gnu.org/viewcvs?rev=227976&root=gcc&view=rev
Log:
        PR middle-end/67619
        * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
        the address to a register.

testsuite/ChangeLog:

        PR middle-end/67619
        * gcc.dg/torture/pr67619.c: New test.
        * lib/target-supports.exp (check_effective_target_builtin_eh_return):
        New procedure.


Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr67619.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/except.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/lib/target-supports.exp


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

* [Bug middle-end/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
  2015-09-18  7:16 [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425 su at cs dot ucdavis.edu
  2015-09-18  8:35 ` [Bug rtl-optimization/67619] " ubizjak at gmail dot com
  2015-09-21 15:24 ` [Bug middle-end/67619] " uros at gcc dot gnu.org
@ 2015-09-21 19:09 ` uros at gcc dot gnu.org
  2015-09-21 19:19 ` ubizjak at gmail dot com
  2021-08-08 16:50 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: uros at gcc dot gnu.org @ 2015-09-21 19:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

--- Comment #5 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon Sep 21 19:08:38 2015
New Revision: 227984

URL: https://gcc.gnu.org/viewcvs?rev=227984&root=gcc&view=rev
Log:
        PR middle-end/67619
        * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
        the address to a register.

testsuite/ChangeLog:

        PR middle-end/67619
        * gcc.dg/torture/pr67619.c: New test.
        * lib/target-supports.exp (check_effective_target_builtin_eh_return):
        New procedure.


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr67619.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/except.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_9-branch/gcc/testsuite/lib/target-supports.exp


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

* [Bug middle-end/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
  2015-09-18  7:16 [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425 su at cs dot ucdavis.edu
                   ` (2 preceding siblings ...)
  2015-09-21 19:09 ` uros at gcc dot gnu.org
@ 2015-09-21 19:19 ` ubizjak at gmail dot com
  2021-08-08 16:50 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2015-09-21 19:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed everywhere.
>From gcc-bugs-return-497761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 21 19:54:20 2015
Return-Path: <gcc-bugs-return-497761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26876 invoked by alias); 21 Sep 2015 19:54:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 26841 invoked by uid 48); 21 Sep 2015 19:54:16 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/47781] warnings from custom printf format specifiers
Date: Mon, 21 Sep 2015 19:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.4.5
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-47781-4-96o8OnQmku@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01739.txt.bz2
Content-length: 988

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47781

--- Comment #16 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #15)
> Although checking the commentary on newer mainline versions of the
> _bfd_default_error_handler function, it looks like it does some additional
> weird stuff with the argument order, but still, support for extending the
> format attribute like this would still be a good start!

As suggested above, whoever wants to see progress on this should start
developing a plugin that hooks into gcc/c-family/c-format.c. Whether your
plugin will parse an attribute, a pragma, an internal representation or define
the formats programmatically is up to you. The important thing is to figure out
what plugin hooks you need in GCC to make it work, which will require making
the format checking extensible at runtime. Until you get that part working,
there is little benefit in discussing any possible syntax.
>From gcc-bugs-return-497762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 21 21:57:32 2015
Return-Path: <gcc-bugs-return-497762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62561 invoked by alias); 21 Sep 2015 21:57:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61948 invoked by uid 48); 21 Sep 2015 21:57:28 -0000
From: "kristopher.kuhlman at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/67674] New: Incorrect result or ICE for deferred-length character component
Date: Mon, 21 Sep 2015 21:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kristopher.kuhlman at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-67674-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01740.txt.bz2
Content-length: 4160

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67674

            Bug ID: 67674
           Summary: Incorrect result or ICE for deferred-length character
                    component
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kristopher.kuhlman at gmail dot com
  Target Milestone: ---

Created attachment 36368
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36368&action=edit
test program

The attached test case results in incorrect results from trunk version of
gfortran (6.0). The same program gives a "not yet supported" message from 4.8.4
and gives an internal compiler error for 4.9.3. Using Ubuntu 14.04. Intel
compiler (15.03) gives expected results.

Maybe related to bug 50221?

1) Expected results (Intel compiler)
-------------------------------------
 length main program before           0
 length intermediate before           0
 length inner before           0
 length inner after          28
 here the word is finally set
 length intermediate after          28
 here the word is finally set
 length main program after          28
 final result:here the word is finally set


2) Trunk gfortran output (compiled will -Wall -Wextra)
------------------------------------------------------
 length main program before           0
 length intermediate before           0
 length inner before           0
 length inner after          28
 here the word is finally set
 length intermediate after          28
 here the word is finally set
 length main program after           0
 final result:


3) Gfortran 4.9.3 output 
------------------------
test_allocatable_string.f90: In function ‘test’:
test_allocatable_string.f90:10:0: internal compiler error: in gimplify_expr, at
gimplify.c:8538
   allocate(character(len=0) :: my_string_type%name)
 ^
0x7c5472 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc-4.9.3/gcc/gimplify.c:8538
0x7ca719 gimplify_modify_expr
        ../../gcc-4.9.3/gcc/gimplify.c:4510
0x7c3c31 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc-4.9.3/gcc/gimplify.c:7627
0x7c66f6 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc-4.9.3/gcc/gimplify.c:5373
0x7c4b0b gimplify_statement_list
        ../../gcc-4.9.3/gcc/gimplify.c:1432
0x7c4b0b gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc-4.9.3/gcc/gimplify.c:8042
0x7c66f6 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc-4.9.3/gcc/gimplify.c:5373
0x7c3b5c gimplify_and_add
        ../../gcc-4.9.3/gcc/gimplify.c:385
0x7c3b5c gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc-4.9.3/gcc/gimplify.c:7964
0x7c66f6 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc-4.9.3/gcc/gimplify.c:5373
0x7c6f96 gimplify_bind_expr
        ../../gcc-4.9.3/gcc/gimplify.c:1099
0x7c3a2a gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc-4.9.3/gcc/gimplify.c:7824
0x7c66f6 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc-4.9.3/gcc/gimplify.c:5373
0x7c763a gimplify_body(tree_node*, bool)
        ../../gcc-4.9.3/gcc/gimplify.c:8734
0x7c7987 gimplify_function_tree(tree_node*)
        ../../gcc-4.9.3/gcc/gimplify.c:8887
0x6c4877 cgraph_analyze_function(cgraph_node*)
        ../../gcc-4.9.3/gcc/cgraphunit.c:648
0x6c56b7 analyze_functions
        ../../gcc-4.9.3/gcc/cgraphunit.c:1016
0x6c6415 finalize_compilation_unit()
        ../../gcc-4.9.3/gcc/cgraphunit.c:2328
0x82f844 write_global_declarations()
        ../../gcc-4.9.3/gcc/langhooks.c:323
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-497763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 21 23:35:18 2015
Return-Path: <gcc-bugs-return-497763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20487 invoked by alias); 21 Sep 2015 23:35:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20010 invoked by uid 48); 21 Sep 2015 23:35:13 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/67674] Incorrect result or ICE for deferred-length character component
Date: Mon, 21 Sep 2015 23:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-67674-4-M8umhwz9Fd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67674-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67674-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg01741.txt.bz2
Content-length: 1197

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg674

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-21
                 CC|                            |kargl at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from kargl at gcc dot gnu.org ---
Reduced testcase.

! { dg-do run }
! PR fortran/67674
!
program test

   implicit none

   type str_t
      character(len=:), allocatable :: name
   end type str_t

   type(str_t) s

! This actually does what one expects.
!   character(len=:), allocatable :: a
!   allocate(character(len=0) :: a)
!   if (len(a) /= 0) call abort
!   call word(a)
!   if (len(a) /= 28) call abort

   allocate(character(len=0) :: s%name)
   if (len(s%name) /= 0) call abort
   call word(s%name)
   if (len(s%name) /= 28) call abort

   contains

      subroutine word(s1)
         character(len=:), allocatable :: s1
          s1 = 'here the word is finally set'
      end subroutine word

end program test


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

* [Bug middle-end/67619] ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425
  2015-09-18  7:16 [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425 su at cs dot ucdavis.edu
                   ` (3 preceding siblings ...)
  2015-09-21 19:19 ` ubizjak at gmail dot com
@ 2021-08-08 16:50 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 16:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67619

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfc at mit dot edu

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 36791 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-08-08 16:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-18  7:16 [Bug target/67619] New: ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425 su at cs dot ucdavis.edu
2015-09-18  8:35 ` [Bug rtl-optimization/67619] " ubizjak at gmail dot com
2015-09-21 15:24 ` [Bug middle-end/67619] " uros at gcc dot gnu.org
2015-09-21 19:09 ` uros at gcc dot gnu.org
2015-09-21 19:19 ` ubizjak at gmail dot com
2021-08-08 16:50 ` pinskia at gcc dot gnu.org

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