public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66292] New: ICE in constexpr call evaluation
@ 2015-05-26 17:10 columbo@gmx-topmail.de
  2015-05-26 17:14 ` [Bug c++/66292] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: columbo@gmx-topmail.de @ 2015-05-26 17:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66292
           Summary: ICE in constexpr call evaluation
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: columbo@gmx-topmail.de
  Target Milestone: ---

When compiling Testing.cxx from
https://github.com/Arcoth/Constainer/blob/9a96ba3089778fe655fde2334701077e2d6c8f35/Testing.cxx#L91,
GCC bails out at the end:

/home/arcoth/Programming/Constainer/Testing.cxx:91:41:   in constexpr expansion
of »Constainer::strToInt<int>(((const char*)" 6849."), 0u, 10)«
/home/arcoth/Programming/Constainer/Parser.hxx:156:22:   in constexpr expansion
of »Constainer::strToInt<int>(str,
Constainer::CharTraits<Char>::length<char>(str), pos, base)«
/home/arcoth/Programming/Constainer/Parser.hxx:143:25:   in constexpr expansion
of »Constainer::strToInt<int, const char*>(str, (str + ((sizetype)len)), ret,
base)«
/home/arcoth/Programming/Constainer/Testing.cxx:91:55:   in constexpr expansion
of »Constainer::BasicString<char, 256ul>(((const
char*)"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"))«
/home/arcoth/Programming/Constainer/String.hxx:179:9:   in constexpr expansion
of »Constainer::BasicString<Char, MaxN, Traits>::append<char, 256ul,
Constainer::CharTraits<char> >(str)«
/home/arcoth/Programming/Constainer/String.hxx:292:16:   in constexpr expansion
of »Constainer::BasicString<Char, MaxN, Traits>::append<char, 256ul,
Constainer::CharTraits<char> >(str,
Constainer::CharTraits<Char>::length<char>(str))«
/home/arcoth/Programming/Constainer/String.hxx:277:47:   in constexpr expansion
of »Constainer::BasicString<Char, MaxN, Traits>::insert<char, 256ul,
Constainer::CharTraits<char> >(((Constainer::BasicString<char,
256ul>*)this)->Constainer::BasicString<char,
256ul>::<anonymous>.Constainer::detail::BasicVector<T, MaxN, CopyTraits,
addBufferSize>::size<char, 256ul, Constainer::CharTraits<char>, 1ul>(), str,
len)«
/home/arcoth/Programming/Constainer/String.hxx:235:3:   in constexpr expansion
of »((Constainer::BasicString<char,
256ul>*)this)->Constainer::BasicString<char,
256ul>::<anonymous>.Constainer::detail::BasicVector<T, MaxN, CopyTraits,
addBufferSize>::_createInsertionSpace<char, 256ul,
Constainer::CharTraits<char>, 1ul>((((Constainer::Array<char,
257ul>::const_iterator)((Constainer::BasicString<char,
256ul>*)this)->Constainer::BasicString<char,
256ul>::<anonymous>.Constainer::detail::BasicVector<char, 256ul,
Constainer::CharTraits<char>, 1ul>::<anonymous>.Constainer::Array<T,
Size>::begin<char, 257ul>()) + ((sizetype)index)), len)«
/home/arcoth/Programming/Constainer/Vector.hxx:83:9:   in constexpr expansion
of »Constainer::Assert((((const value_type*)Constainer::detail::BasicVector<T,
MaxN, CopyTraits, addBufferSize>::end<char, 256ul,
Constainer::CharTraits<char>, 1ul>()) >= pos), 0u)«
/home/arcoth/Programming/Constainer/Testing.cxx:91:55: interner
Compiler-Fehler: Speicherzugriffsfehler

static_assert( Constainer::strToInt<int>(" 6849.") == 6849 );
                                                       ^
0xc8bd7f crash_signal
        ../.././gcc/toplev.c:380
0x9f8444 bool vec_safe_reserve<tree_node*, va_gc>(vec<tree_node*, va_gc,
vl_embed>*&, unsigned int, bool)
        ../.././gcc/vec.h:575
0x9f8444 tree_node** vec_safe_push<tree_node*, va_gc>(vec<tree_node*, va_gc,
vl_embed>*&, tree_node* const&)
        ../.././gcc/vec.h:669
0x9f8444 add_local_decl(function*, tree_node*)
        ../.././gcc/function.c:6705
0xcfce86 remap_decls
        ../.././gcc/tree-inline.c:653
0xcfea30 remap_block
        ../.././gcc/tree-inline.c:721
0xcff7e8 copy_bind_expr
        ../.././gcc/tree-inline.c:794
0xcff7e8 copy_tree_body_r(tree_node**, int*, void*)
        ../.././gcc/tree-inline.c:1128
0xf0e5a2 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hashset_traits>*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hashset_traits>*))
        ../.././gcc/tree.c:11117
0xcf68ef copy_tree_body
        ../.././gcc/tree-inline.c:2964
0xcfd31e copy_fn(tree_node*, tree_node*&, tree_node*&)
        ../.././gcc/tree-inline.c:5994
0x7cedc6 cxx_eval_call_expression
        ../.././gcc/cp/constexpr.c:1347
0x7cfff4 cxx_eval_constant_expression
        ../.././gcc/cp/constexpr.c:3062
0x7d0c47 cxx_eval_conditional_expression
        ../.././gcc/cp/constexpr.c:1648
0x7d0c47 cxx_eval_constant_expression
        ../.././gcc/cp/constexpr.c:3353
0x7d0c47 cxx_eval_conditional_expression
        ../.././gcc/cp/constexpr.c:1648
0x7d0c47 cxx_eval_constant_expression
        ../.././gcc/cp/constexpr.c:3353
0x7d5855 cxx_eval_statement_list
        ../.././gcc/cp/constexpr.c:2853
0x7d0c07 cxx_eval_constant_expression
        ../.././gcc/cp/constexpr.c:3425
0x7cf0c3 cxx_eval_call_expression
        ../.././gcc/cp/constexpr.c:1377

I can currently not be asked to boil the example down, since it emerges from a
fairly large project. However, I can confirm this in trunk v. 20150502.
>From gcc-bugs-return-487327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue May 26 17:11:21 2015
Return-Path: <gcc-bugs-return-487327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65792 invoked by alias); 26 May 2015 17: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 65741 invoked by uid 48); 26 May 2015 17:11:17 -0000
From: "LpSolit at netscape dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/64968] Upgrade GCC Bugzilla to 5.0
Date: Tue, 26 May 2015 17:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: web
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: LpSolit at netscape dot net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: LpSolit at netscape dot net
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64968-4-TjLou1JgRJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64968-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-05/txt/msg02167.txt.bz2
Content-length: 470

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

--- Comment #45 from Frédéric Buclin <LpSolit at netscape dot net> ---
(In reply to Markus Trippelsdorf from comment #44)
> Any update on the timestamp issue? It still happens regularly.

I reported to overseers that the problem was not in Bugzilla, per comment 34,
but I don't know if they found what was altering the local timezone. I can add
a workaround in Bugzilla itself, if that helps. Frank?
>From gcc-bugs-return-487329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue May 26 17:14:37 2015
Return-Path: <gcc-bugs-return-487329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69044 invoked by alias); 26 May 2015 17:14:37 -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 68943 invoked by uid 48); 26 May 2015 17:14:33 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66292] ICE in constexpr call evaluation
Date: Tue, 26 May 2015 17:14: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: 6.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: minor
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: WAITING
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 everconfirmed
Message-ID: <bug-66292-4-BeRRsjXhEF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66292-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66292-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-05/txt/msg02169.txt.bz2
Content-length: 407

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-05-26
     Ever confirmed|0                           |1


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

* [Bug c++/66292] ICE in constexpr call evaluation
  2015-05-26 17:10 [Bug c++/66292] New: ICE in constexpr call evaluation columbo@gmx-topmail.de
@ 2015-05-26 17:14 ` mpolacek at gcc dot gnu.org
  2015-05-26 17:31 ` columbo@gmx-topmail.de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-05-26 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Please provide a preprocessed source file (does not have to be reduced).


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

* [Bug c++/66292] ICE in constexpr call evaluation
  2015-05-26 17:10 [Bug c++/66292] New: ICE in constexpr call evaluation columbo@gmx-topmail.de
  2015-05-26 17:14 ` [Bug c++/66292] " mpolacek at gcc dot gnu.org
@ 2015-05-26 17:31 ` columbo@gmx-topmail.de
  2015-05-26 17:33 ` trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: columbo@gmx-topmail.de @ 2015-05-26 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Columbo <columbo@gmx-topmail.de> ---
(In reply to Marek Polacek from comment #1)
> Please provide a preprocessed source file (does not have to be reduced).

The file is larger than 1000kb. It consists of 88000 lines.


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

* [Bug c++/66292] ICE in constexpr call evaluation
  2015-05-26 17:10 [Bug c++/66292] New: ICE in constexpr call evaluation columbo@gmx-topmail.de
  2015-05-26 17:14 ` [Bug c++/66292] " mpolacek at gcc dot gnu.org
  2015-05-26 17:31 ` columbo@gmx-topmail.de
@ 2015-05-26 17:33 ` trippels at gcc dot gnu.org
  2015-05-26 17:38 ` columbo@gmx-topmail.de
  2015-08-10 16:11 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-05-26 17:33 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Columbo from comment #2)
> (In reply to Marek Polacek from comment #1)
> > Please provide a preprocessed source file (does not have to be reduced).
> 
> The file is larger than 1000kb. It consists of 88000 lines.

Using compression is OK.


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

* [Bug c++/66292] ICE in constexpr call evaluation
  2015-05-26 17:10 [Bug c++/66292] New: ICE in constexpr call evaluation columbo@gmx-topmail.de
                   ` (2 preceding siblings ...)
  2015-05-26 17:33 ` trippels at gcc dot gnu.org
@ 2015-05-26 17:38 ` columbo@gmx-topmail.de
  2015-08-10 16:11 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: columbo@gmx-topmail.de @ 2015-05-26 17:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Columbo <columbo@gmx-topmail.de> ---
Created attachment 35630
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35630&action=edit
Testcase for 66292


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

* [Bug c++/66292] ICE in constexpr call evaluation
  2015-05-26 17:10 [Bug c++/66292] New: ICE in constexpr call evaluation columbo@gmx-topmail.de
                   ` (3 preceding siblings ...)
  2015-05-26 17:38 ` columbo@gmx-topmail.de
@ 2015-08-10 16:11 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-10 16:11 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

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


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

end of thread, other threads:[~2015-08-10 16:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26 17:10 [Bug c++/66292] New: ICE in constexpr call evaluation columbo@gmx-topmail.de
2015-05-26 17:14 ` [Bug c++/66292] " mpolacek at gcc dot gnu.org
2015-05-26 17:31 ` columbo@gmx-topmail.de
2015-05-26 17:33 ` trippels at gcc dot gnu.org
2015-05-26 17:38 ` columbo@gmx-topmail.de
2015-08-10 16:11 ` trippels 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).