From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14225 invoked by alias); 14 Aug 2014 09:45:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13975 invoked by uid 48); 14 Aug 2014 09:45:24 -0000 From: "sampath.pamidi at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/62133] New: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=core-avx2") Date: Thu, 14 Aug 2014 09:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sampath.pamidi at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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 Message-ID: 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: 2014-08/txt/msg00928.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62133 Bug ID: 62133 Summary: internal compiler error:in classify_argument, at config/i386/i386.c:6240 when using #pragma GCC target ("arch=3Dcore-avx2") Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sampath.pamidi at gmail dot com Compiler Output: gcc -g testtarget.c In file included from /usr/lib64/gcc/x86_64-suse-linux/4.8/include/immintrin.h:56:0, from testtarget.c:4: /usr/lib64/gcc/x86_64-suse-linux/4.8/include/avxintrin.h: In function =C3=A2_mm256_load_si256=C3=A2: /usr/lib64/gcc/x86_64-suse-linux/4.8/include/avxintrin.h:869:1: internal compiler error: in classify_argument, at config/i386/i386.c:6240 _mm256_load_si256 (__m256i const *__P) ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ******************************* testtarget.c: #pragma GCC push_options=20=20=20=20 #pragma GCC target ("arch=3Dcore-avx2") #include int main() { __m256i const *rem; _mm256_load_si256( (__m256i*) rem ); } #pragma GCC pop_options=20 *********************************** # gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=3D/usr --infodir=3D/usr/share/info --mandir=3D/usr/share/man --libdir=3D/usr/lib64 --libexecdir=3D/usr/lib64 --enable-languages=3Dc,c++,objc,fortran,obj-c++,java,ada --enable-checking=3Drelease --with-gxx-include-dir=3D/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=3Dhttp://bugs.opensuse.org/ --with-pkgversion=3D'SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=3D/lib64 --with-system= -zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=3Dnew --disable-libstdcx= x-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=3D-4.8 --without-system-libunwind --with-arch-32=3Di586 --with-tune=3Dgeneric --build=3Dx86_64-suse-linux --host=3Dx86_64-suse-linux Thread model: posix gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux) >>From gcc-bugs-return-458430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 14 09:45:21 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13569 invoked by alias); 14 Aug 2014 09:45:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13515 invoked by uid 48); 14 Aug 2014 09:45:13 -0000 From: "mrestelli at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/62125] Nested select type not accepted (rejects valid) Date: Thu, 14 Aug 2014 09:45: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mrestelli at gmail dot com X-Bugzilla-Status: WAITING 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: In-Reply-To: References: 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: 2014-08/txt/msg00927.txt.bz2 Content-length: 923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62125 --- Comment #2 from mrestelli --- I can not say 100% that the code is correct, but at least reading 8.6 "The SELECT TYPE Construct" of "The Fortran 2003 Handbook" I don't see why it shouldn't. Notice that: among rules and restrictions, 1. says "The selector must be polymorphic." and then "In the block following a CLASS IS type guard, the associating entity is polymorphic and has the same declared type as the selector. The type parameter values are those of the declared type of the selector." So, after the type guard class is(t2) I understand that u is a polymorphic variable of type class(t2) which can be used as the selector of a nested select type construct. (Assuming the code is not legal, I would then claim that the error message is not very clear, since inside the SELECT TYPE construct the type of u is t2, not t1)