public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66517] New: [5 Regression] [C++11] sorry, unimplemented: unexpected AST of kind type_decl
@ 2015-06-11 18:13 megahallon at gmail dot com
  2015-06-11 22:54 ` [Bug c++/66517] " redi at gcc dot gnu.org
  2015-06-17 19:43 ` jason at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: megahallon at gmail dot com @ 2015-06-11 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66517
           Summary: [5 Regression] [C++11] sorry, unimplemented:
                    unexpected AST of kind type_decl
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: megahallon at gmail dot com
  Target Milestone: ---

The following snippet:

-------------------------------------
template <typename S>
void p()
{
  int val = ({union {int x;}; 3;}
  );
}
-------------------------------------

built with g++ 5.1.0:

g++ -std=c++11 bug.cpp -c

gives the following error:

bug.cpp: In function ‘void p()’:
bug.cpp:5:3: sorry, unimplemented: unexpected AST of kind type_decl
   );
   ^

Same error with -std=c++14 but works with -std=c++98.
Also works with g++ 4.8.2.

Output from g++ -v:

Using built-in specs.
COLLECT_GCC=/usr/local/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/usr/local --enable-languages=c,c++
--disable-multilib
Thread model: posix
gcc version 5.1.0 (GCC)
>From gcc-bugs-return-488816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 18:30:22 2015
Return-Path: <gcc-bugs-return-488816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98713 invoked by alias); 11 Jun 2015 18:30:22 -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 98621 invoked by uid 48); 11 Jun 2015 18:30:18 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/56766] Fails to combine (vec_select (vec_concat ...)) to (vec_merge ...)
Date: Thu, 11 Jun 2015 18:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
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-56766-4-LT8vxdm6My@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56766-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-06/txt/msg01148.txt.bz2
Content-length: 511

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

--- Comment #19 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Segher Boessenkool from comment #18)
> (in reply to c#9)
> 
> Yes, this is a generic problem.  recog will not recognise patterns
> where regs are swapped in some places but not others.  This can of
> course be worked around in combine, but that will be expensive (and
> not solve the real problem).

So, do you think the patch in Comment #15 is the way to go at this time?
>From gcc-bugs-return-488817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 19:03:41 2015
Return-Path: <gcc-bugs-return-488817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70867 invoked by alias); 11 Jun 2015 19:03:41 -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 66100 invoked by uid 48); 11 Jun 2015 19:03:37 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/56766] Fails to combine (vec_select (vec_concat ...)) to (vec_merge ...)
Date: Thu, 11 Jun 2015 19:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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-56766-4-7OlvYsNDuc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56766-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-06/txt/msg01149.txt.bz2
Content-length: 260

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

--- Comment #20 from Segher Boessenkool <segher at gcc dot gnu.org> ---
That patch is similar to what all other backends do for similar
situations, yes.  There is no nicer way to do things as far as I
know.


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

* [Bug c++/66517] [5 Regression] [C++11] sorry, unimplemented: unexpected AST of kind type_decl
  2015-06-11 18:13 [Bug c++/66517] New: [5 Regression] [C++11] sorry, unimplemented: unexpected AST of kind type_decl megahallon at gmail dot com
@ 2015-06-11 22:54 ` redi at gcc dot gnu.org
  2015-06-17 19:43 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-11 22:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
probably a dup of PR66445


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

* [Bug c++/66517] [5 Regression] [C++11] sorry, unimplemented: unexpected AST of kind type_decl
  2015-06-11 18:13 [Bug c++/66517] New: [5 Regression] [C++11] sorry, unimplemented: unexpected AST of kind type_decl megahallon at gmail dot com
  2015-06-11 22:54 ` [Bug c++/66517] " redi at gcc dot gnu.org
@ 2015-06-17 19:43 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-17 19:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Yes, duplicate.

*** This bug has been marked as a duplicate of bug 66445 ***


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

end of thread, other threads:[~2015-06-17 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 18:13 [Bug c++/66517] New: [5 Regression] [C++11] sorry, unimplemented: unexpected AST of kind type_decl megahallon at gmail dot com
2015-06-11 22:54 ` [Bug c++/66517] " redi at gcc dot gnu.org
2015-06-17 19:43 ` jason 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).