Jump to page: 1 2
Thread overview
[Issue 12380] Wrong line number for type mismatch with enum .init assignment
May 22, 2014
Andrej Mitrovic
Apr 03, 2020
Dlang Bot
May 06, 2020
Dlang Bot
May 06, 2020
Dlang Bot
May 09, 2020
Dlang Bot
Dec 10, 2022
Nick Treleaven
May 22, 2014
https://issues.dlang.org/show_bug.cgi?id=12380

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
I've found another test-case which wasn't fixed by this pull:

-----
struct vec2 { float x, y; }

enum winSize = vec2(1024, 768);  // L3

void main()
{
    int x = winSize.x;  // L7
}
-----

test.d(3): Error: cannot implicitly convert expression (1024.00) of type float
to int

--
April 03, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #11002 "Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding / exp. optimization" fixing this issue:

- Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding / exp. optimization

https://github.com/dlang/dmd/pull/11002

--
April 08, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com

--- Comment #5 from Steven Schveighoffer <schveiguy@yahoo.com> ---
*** Issue 20718 has been marked as a duplicate of this issue. ***

--
April 08, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andy.pj.hanson@gmail.com

--- Comment #6 from Steven Schveighoffer <schveiguy@yahoo.com> ---
*** Issue 15867 has been marked as a duplicate of this issue. ***

--
May 06, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11002 "Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding / exp. optimization" was merged into stable:

- e9227fc44fdd52e7217d0f72f6fec671f98555f5 by Boris Carvajal:
  Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding /
exp. optimization

https://github.com/dlang/dmd/pull/11002

--
May 06, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11102 "Revert "Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding / exp. optimization"" was merged into stable:

- 7199de9b5d0a04bc415ac52d1490c66c92d14508 by Steven Schveighoffer:
  Revert "Fix Issues 20718, 15867, 12380 - Wrong location errors on const.
folding / exp. optimization"

https://github.com/dlang/dmd/pull/11102

--
May 06, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--
May 06, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

--- Comment #9 from Steven Schveighoffer <schveiguy@yahoo.com> ---
*** Issue 20718 has been marked as a duplicate of this issue. ***

--
May 06, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

--- Comment #10 from Steven Schveighoffer <schveiguy@yahoo.com> ---
*** Issue 15867 has been marked as a duplicate of this issue. ***

--
May 09, 2020
https://issues.dlang.org/show_bug.cgi?id=12380

--- Comment #11 from Dlang Bot <dlang-bot@dlang.rocks> ---
@MartinNowak created dlang/dmd pull request #11118 "merge stable" fixing this issue:

- Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding / exp. optimization

- Merge pull request #11002 from BorisCarvajal/fix20718

  Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding /
exp. optimization
  merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>

- Revert "Fix Issues 20718, 15867, 12380 - Wrong location errors on const. folding / exp. optimization"

- Merge pull request #11102 from dlang/revert-11002-fix20718

  Revert "Fix Issues 20718, 15867, 12380 - Wrong location errors on const.
folding / exp. optimization"
  merged-on-behalf-of: Florian <moonlightsentinel@disroot.org>

https://github.com/dlang/dmd/pull/11118

--
« First   ‹ Prev
1 2