re PR c/69627 (Conditional jump or move depends on uninitialised value(s) in (anonymo...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Feb 2016 22:40:22 +0000 (23:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Feb 2016 22:40:22 +0000 (23:40 +0100)
commit0afbb81bb61b5ad8a3ed49690151afab9c7dce85
treef242e58afa516238fd9abb07a9bc29cace82c04d
parenteadb8035ac4b259f199b8a82a88e46764f17c95b
re PR c/69627 (Conditional jump or move depends on uninitialised value(s) in (anonymous namespace)::layout::get_state_at_point)

PR c/69627
* diagnostic-show-locus.c (layout::get_state_at_point): Don't read
range->m_caret fields if range->m_show_caret_p is false.

* gcc.dg/pr69627.c: New test.

From-SVN: r233114
gcc/ChangeLog
gcc/diagnostic-show-locus.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69627.c [new file with mode: 0644]