We present an anomaly-free Dirac constraint quantization of the
string-inspired dilatonic gravity (the CGHS model) in an open 2-dimensional
spacetime. We show that the quantum theory has the same degrees of freedom as
the classical theory; namely, all the modes of the scalar field on an auxiliary
flat background, supplemented by a single additional variable corresponding to
the primordial component of the black hole mass. The functional Heisenberg
equations of motion for these dynamical variables and their canonical
conjugates are linear, and they have exactly the same form as the corresponding
classical equations. A canonical transformation brings us back to the physical
geometry and induces its quantization.Comment: 37 pages, LATEX, no figures, submitted to Physical Review