diff options
author | Marek Polacek <polacek@redhat.com> | 2016-04-14 16:51:16 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-04-14 16:51:16 +0000 |
commit | 851285595028bdbb0eed29766e6eece1a884138e (patch) | |
tree | 9172666a3b97d7d7c50ba497cc31580311d7c3f1 /gcc/tree.c | |
parent | 9f285ccb77a109ba94788f71ac83d4d46299ea9f (diff) | |
download | gcc-851285595028bdbb0eed29766e6eece1a884138e.zip gcc-851285595028bdbb0eed29766e6eece1a884138e.tar.gz gcc-851285595028bdbb0eed29766e6eece1a884138e.tar.bz2 |
re PR c++/70029 (ICE with C++11 and -flto)
PR c++/70029
* tree.c (verify_type): Disable the canonical type of main variant
check.
* g++.dg/torture/pr70029.C: New test.
Co-Authored-By: Jan Hubicka <hubicka@ucw.cz>
From-SVN: r234979
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -13584,7 +13584,9 @@ verify_type (const_tree t) debug_tree (ct); error_found = true; } - if (TYPE_MAIN_VARIANT (t) == t && ct && TYPE_MAIN_VARIANT (ct) != ct) + /* FIXME: this is violated by the C++ FE as discussed in PR70029, when + FUNCTION_*_QUALIFIED flags are set. */ + if (0 && TYPE_MAIN_VARIANT (t) == t && ct && TYPE_MAIN_VARIANT (ct) != ct) { error ("TYPE_CANONICAL of main variant is not main variant"); debug_tree (ct); |