Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[trunk] ICE in gen_inlined_subroutine_die, at dwarf2out.cc:25152 #18

Open
NinaRanns opened this issue Nov 6, 2024 · 1 comment
Open

Comments

@NinaRanns
Copy link
Owner

https://godbolt.org/z/9ajTMY368

int f(int& i)
{
   i++;
   return i;
}

int f2 (int x, const int *y) pre(x > 0)
{
    int b = x + *y;
}

int main(int ac, char *av[])
{
   int i = 3;
   ++i;
   *av[0] = (char) f(i);
   //__builtin_observable ();
   contract_assert (f2(i, &i) > 42);
  return i;
} 
<source>: In function 'int f2(int, const int*)':
<source>:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
during RTL pass: final
dump file: /app/output.cpp.359r.final
<source>:10:1: internal compiler error: in gen_inlined_subroutine_die, at dwarf2out.cc:25152
0x2805185 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t)
	???:0
0x2818865 internal_error(char const*, ...)
	???:0
0xa87ede fancy_abort(char const*, int, char const*)
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
@NinaRanns NinaRanns changed the title ICE in invalid code 2 ICE in gen_inlined_subroutine_die, at dwarf2out.cc:25152 Nov 6, 2024
@NinaRanns
Copy link
Owner Author

reproducible on trunk https://godbolt.org/z/b3rc59vd1

@NinaRanns NinaRanns changed the title ICE in gen_inlined_subroutine_die, at dwarf2out.cc:25152 [trunk] ICE in gen_inlined_subroutine_die, at dwarf2out.cc:25152 Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant